You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.3 KiB
76 lines
1.3 KiB
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
volumes:
|
|
- .:/usr/src/app
|
|
- static_volume:/usr/src/app/staticfiles
|
|
- media_volume:/usr/src/app/media
|
|
ports:
|
|
- "8000:8000"
|
|
env_file:
|
|
- .env.dev
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
networks:
|
|
- app_network
|
|
|
|
celery_worker:
|
|
build: .
|
|
command: celery -A config worker -l info
|
|
volumes:
|
|
- .:/usr/src/app
|
|
env_file:
|
|
- .env.dev
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
networks:
|
|
- app_network
|
|
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
env_file:
|
|
- .env.dev
|
|
networks:
|
|
- app_network
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
networks:
|
|
- app_network
|
|
|
|
centrifugo:
|
|
image: centrifugo/centrifugo:v5
|
|
container_name: sch_centrifugo
|
|
restart: always
|
|
command: centrifugo --config=/centrifugo/config.json
|
|
volumes:
|
|
- ./centrifugo/config.json:/centrifugo/config.json
|
|
ports:
|
|
- "8001:8000"
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- app_network
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|
|
static_volume:
|
|
media_volume:
|
|
|
|
networks:
|
|
app_network:
|
|
driver: bridge
|