2026-01-05 21:12:53 +00:00
|
|
|
services:
|
|
|
|
|
node:
|
|
|
|
|
build:
|
|
|
|
|
context: ..
|
|
|
|
|
dockerfile: node/Dockerfile
|
|
|
|
|
container_name: 3x-ui-node
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
# - NODE_API_KEY=${NODE_API_KEY:-change-me-to-secure-key}
|
|
|
|
|
- NODE_API_KEY=test-key
|
|
|
|
|
ports:
|
|
|
|
|
- "8080:8080"
|
|
|
|
|
- "44000:44000"
|
|
|
|
|
volumes:
|
2026-01-05 23:27:12 +00:00
|
|
|
- ./bin/config.json:/app/bin/config.json
|
2026-01-05 21:12:53 +00:00
|
|
|
- ./logs:/app/logs
|
2026-01-05 23:27:12 +00:00
|
|
|
# Note: config.json is mounted directly for persistence
|
|
|
|
|
# If the file doesn't exist, it will be created when XRAY config is first applied
|
2026-01-05 21:12:53 +00:00
|
|
|
networks:
|
|
|
|
|
- xray-network
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
xray-network:
|
|
|
|
|
driver: bridge
|