AUTH_CMD to USER_CMD, updated workflows, Makefile, and docker-compose for user service
This commit is contained in:
55
user/docker-compose.yml
Normal file
55
user/docker-compose.yml
Normal file
@@ -0,0 +1,55 @@
|
||||
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
|
||||
Reference in New Issue
Block a user