liquid/docker-compose-dev.yaml
2025-05-26 19:31:01 +07:00

76 lines
1.4 KiB
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
- ./media:/app/media
- ./web/staticfiles:/app/web/staticfiles
# - ./media:/app/media
ports:
- "8000:8000"
# expose:
# - 8000
depends_on:
- redis
# - vpn
# network_mode: "service:vpn"
restart: always
# vpn:
# image: ubergarm/l2tp-ipsec-vpn-client
# container_name: vpn
# privileged: true
# cap_add:
# - NET_ADMIN
# environment:
# VPN_SERVER_IP: "176.196.239.122"
# VPN_IPSEC_PSK: "ad71Vyad"
# VPN_USER: "cybercode"
# VPN_PASSWORD: "wPvyUHd8"
# restart: always
# nginx:
# build: ./nginx/dev
# # image: nginx:latest
# ports:
# - "80:80"
# volumes:
# - ./static:/home/app/static
# # - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# # - ./nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
# depends_on:
# - web
# 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: