Docker compose konfiguratsiyasini yangilandi va xizmatlar uchun yangi buyruqlar qo'shildi.

This commit is contained in:
A'zamov Samandar
2025-04-21 18:42:21 +05:00
parent 5ce665b643
commit d39f9a23f3
228 changed files with 36071 additions and 115 deletions

View File

@@ -1,5 +1,6 @@
networks:
lamenu:
name: lamenu
driver: bridge
volumes:
@@ -22,88 +23,6 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- lamenu
user-nginx:
labels:
- "traefik.enable=true"
- "traefik.http.routers.user.rule=PathPrefix(`/user`)"
- "traefik.http.routers.user.entrypoints=web"
- "traefik.http.services.user.loadbalancer.server.port=80"
- "traefik.http.middlewares.user-strip-prefix.stripPrefix.prefixes=/user"
- "traefik.http.routers.user.middlewares=user-strip-prefix"
networks:
- lamenu
volumes:
- ./user/resources/layout/nginx.conf:/etc/nginx/nginx.conf
- ./user/resources/:/usr/share/nginx/html/resources/
build:
context: ./user
dockerfile: ./docker/Dockerfile.nginx
depends_on:
- user
profiles:
- user
user:
networks:
- lamenu
build:
context: ./user
dockerfile: ./docker/Dockerfile.web
restart: always
command: ${user_COMMAND:-sh ./resources/scripts/entrypoint.sh}
environment:
- PYTHONPYCACHEPREFIX=/var/cache/pycache
- JWT_KEY=${JWT_KEY}
volumes:
- ./user:/code
- pycache:/var/cache/pycache
depends_on:
- user-db
- redis
profiles:
- user
user-db:
networks:
- lamenu
image: postgres:16
restart: always
environment:
POSTGRES_DB: django
POSTGRES_USER: postgres
POSTGRES_PASSWORD: '2309'
volumes:
- pg_data:/var/lib/postgresql/data
profiles:
- user
payment:
labels:
- "traefik.enable=true"
- "traefik.http.routers.payment.rule=PathPrefix(`/payment`)"
- "traefik.http.routers.payment.entrypoints=web"
- "traefik.http.services.payment.loadbalancer.server.port=8000"
networks:
- lamenu
build:
context: ./payment
dockerfile: ./Dockerfile
restart: always
environment:
- JWT_KEY=${JWT_KEY}
volumes:
- ./payment:/code
- pycache:/var/cache/pycache
profiles:
- payment
notification:
build:
context: ./notification
dockerfile: Dockerfile
networks:
- lamenu
profiles:
- notification
redis:
networks:
- lamenu
@@ -111,7 +30,6 @@ services:
image: redis
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:management
networks: