3x-ui/docker-compose.yml

43 lines
892 B
YAML
Raw Normal View History

version: '3.8'
2023-05-12 17:48:16 +00:00
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: 3x-ui-backend
restart: unless-stopped
2023-05-12 17:48:16 +00:00
volumes:
- ./db/:/etc/x-ui/
- ./cert/:/root/cert/
ports:
- "2053:2053"
2023-05-12 17:48:16 +00:00
environment:
- XRAY_VMESS_AEAD_FORCED=false
- XUI_ENABLE_FAIL2BAN=true
# - XUI_PORT=2053 # Example if backend reads port from ENV
frontend:
build:
context: ./new-frontend
dockerfile: Dockerfile
container_name: 3x-ui-frontend
2023-05-12 17:48:16 +00:00
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_BASE_URL=http://backend:2053
depends_on:
- backend
# networks: # Uncomment if using a custom network defined below
# - xui-net
# volumes:
# db_data:
# cert_data:
# networks:
# xui-net:
# driver: bridge