liquid/docker-compose.yaml
2025-05-19 10:39:26 +07:00

71 lines
1.2 KiB
YAML

services:
web:
build: ./web
volumes:
- .:/app
- ./media:/app/media
- ./static:/app/staticfiles
# - ./media:/app/media
ports:
- "8106:8106"
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
volumes:
- redis_data:/data
ports:
- "6379:6379"
healthcheck:
test: [ "CMD-SHELL", "redis-cli ping | grep PONG" ]
interval: 1s
timeout: 3s
retries: 5
restart: always
volumes:
redis_data: