48 lines
975 B
YAML
48 lines
975 B
YAML
services:
|
|
web:
|
|
container_name: liquid_web
|
|
build: ./web
|
|
command: >
|
|
sh -c "python manage.py collectstatic --noinput &&
|
|
daphne -b 0.0.0.0 -p 8106 app.asgi:application"
|
|
volumes:
|
|
- .:/app
|
|
- ./web/media:/app/media
|
|
- ./web/staticfiles:/app/web/staticfiles
|
|
|
|
ports:
|
|
- "8106:8106"
|
|
|
|
depends_on:
|
|
- redis
|
|
|
|
restart: always
|
|
|
|
# nginx:
|
|
# build: ./nginx/dev
|
|
# # image: nginx:latest
|
|
# ports:
|
|
# - "80:80"
|
|
# volumes:
|
|
# # - ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
# - ./nginx/nginx/conf.d/nginx.conf:/etc/nginx/conf.d/nginx.conf
|
|
# depends_on:
|
|
# - web
|
|
|
|
# restart: always
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
volumes:
|
|
- redis_data:/data
|
|
ports:
|
|
- "6378:6378"
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "redis-cli ping | grep PONG" ]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 5
|
|
restart: always
|
|
|
|
volumes:
|
|
redis_data: |