liquid/docker-compose-dev.yaml
2025-06-03 13:14:25 +07:00

38 lines
691 B
YAML

services:
web:
build: ./web
container_name: liquid-web-2
command: >
sh -c "python manage.py collectstatic --noinput &&
daphne -b 0.0.0.0 -p 8000 app.asgi:application"
volumes:
- .:/app
- ./web/media:/app/media
- ./web/staticfiles:/app/web/staticfiles
ports:
- "8000:8000"
depends_on:
- redis
# - vpn
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
volumes:
redis_data: