38 lines
782 B
YAML
38 lines
782 B
YAML
services:
|
|
web:
|
|
build:
|
|
context: ../web
|
|
dockerfile: Dockerfiles/Dockerfile
|
|
container_name: liquid_web-2
|
|
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
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
container_name: liquid_redis-2
|
|
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: |