Files
notification/services/auth/docker-compose.yml
A'zamov Samandar dd0da49eb9 auth service created
2025-04-19 14:58:55 +05:00

55 lines
1.1 KiB
YAML

networks:
auth:
driver: bridge
volumes:
pg_data: null
rabbitmq: null
pycache: null
services:
nginx:
networks:
- auth
ports:
- ${PORT:-8001}:80
volumes:
- ./resources/layout/nginx.conf:/etc/nginx/nginx.conf
- ./resources/:/usr/share/nginx/html/resources/
build:
context: .
dockerfile: ./docker/Dockerfile.nginx
depends_on:
- web
web:
networks:
- auth
build:
context: .
dockerfile: ./docker/Dockerfile.web
restart: always
command: ${COMMAND:-sh ./entrypoint.sh}
environment:
- PYTHONPYCACHEPREFIX=/var/cache/pycache
volumes:
- .:/code
- pycache:/var/cache/pycache
depends_on:
- db
- redis
db:
networks:
- auth
image: postgres:16
restart: always
environment:
POSTGRES_DB: django
POSTGRES_USER: postgres
POSTGRES_PASSWORD: '2309'
volumes:
- pg_data:/var/lib/postgresql/data
redis:
networks:
- auth
restart: always
image: redis