mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-02-28 13:13:00 +00:00
edit docker-compose file
This commit is contained in:
parent
09162b8b1c
commit
0c16aa9c8a
1 changed files with 4 additions and 45 deletions
|
|
@ -5,53 +5,12 @@ services:
|
|||
dockerfile: node/Dockerfile
|
||||
container_name: 3x-ui-node
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# - NODE_API_KEY=${NODE_API_KEY:-change-me-to-secure-key}
|
||||
#environment:
|
||||
#- NODE_API_KEY=test-key
|
||||
- PANEL_URL=http://192.168.0.7:2054
|
||||
#- PANEL_URL=http://192.168.0.7:2054
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "44000:44000"
|
||||
volumes:
|
||||
- ./bin/config.json:/app/bin/config.json
|
||||
- ./logs:/app/logs
|
||||
# Note: config.json is mounted directly for persistence
|
||||
# If the file doesn't exist, it will be created when XRAY config is first applied
|
||||
networks:
|
||||
- xray-network
|
||||
node2:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: node/Dockerfile
|
||||
container_name: 3x-ui-node2
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# - NODE_API_KEY=${NODE_API_KEY:-change-me-to-secure-key}
|
||||
#- NODE_API_KEY=test-key1
|
||||
- PANEL_URL=http://192.168.0.7:2054
|
||||
ports:
|
||||
- "8081:8080"
|
||||
- "44001:44001"
|
||||
volumes:
|
||||
- ./bin/config.json:/app/bin/config.json
|
||||
- ./logs:/app/logs
|
||||
# Note: config.json is mounted directly for persistence
|
||||
# If the file doesn't exist, it will be created when XRAY config is first applied
|
||||
networks:
|
||||
- xray-network
|
||||
|
||||
node3:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: node/Dockerfile
|
||||
container_name: 3x-ui-node3
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
#- NODE_API_KEY=test-key
|
||||
- PANEL_URL=http://192.168.0.7:2054
|
||||
ports:
|
||||
- "8082:8080"
|
||||
- "44002:44002"
|
||||
- "8080:8080" # API ports (connect panel)
|
||||
# - "44000:44000" # Xray ports = Inbound port
|
||||
volumes:
|
||||
- ./bin/config.json:/app/bin/config.json
|
||||
- ./logs:/app/logs
|
||||
|
|
|
|||
Loading…
Reference in a new issue