the ability to set the port for wireguard and shadowsocks at startup
This commit is contained in:
+9
-6
@@ -38,8 +38,6 @@ services:
|
||||
unit:
|
||||
build:
|
||||
dockerfile: dockerfile/php.dockerfile
|
||||
args:
|
||||
IP: ${IP}
|
||||
volumes:
|
||||
- ./config/.profile:/root/.bashrc:ro
|
||||
- ./config/php.ini:/usr/local/etc/php/php.ini
|
||||
@@ -62,7 +60,8 @@ services:
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
ADDRESS: ${WGADDRESS}
|
||||
PORT_WG: ${WGPORT}
|
||||
WGPORT: ${WGPORT}
|
||||
SSPORT: ${SSPORT}
|
||||
hostname: unit
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 1s
|
||||
@@ -71,6 +70,8 @@ services:
|
||||
networks:
|
||||
default:
|
||||
ipv4_address: 10.10.0.7
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
proxy:
|
||||
build:
|
||||
dockerfile: dockerfile/shadowsocks.dockerfile
|
||||
@@ -87,6 +88,7 @@ services:
|
||||
ipv4_address: 10.10.0.3
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
SSPORT: ${SSPORT}
|
||||
stop_grace_period: 1s
|
||||
command: ["/bin/sh", "/start_proxy.sh"]
|
||||
wg:
|
||||
@@ -105,7 +107,7 @@ services:
|
||||
- ${WGPORT}:${WGPORT}/udp
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
PORT_WG: ${WGPORT}
|
||||
WGPORT: ${WGPORT}
|
||||
ADDRESS: ${WGADDRESS}
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
@@ -147,10 +149,11 @@ services:
|
||||
depends_on:
|
||||
- unit
|
||||
ports:
|
||||
- 8388:8388/udp
|
||||
- 8388:8388/tcp
|
||||
- ${SSPORT}:${SSPORT}/tcp
|
||||
- ${SSPORT}:${SSPORT}/udp
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
SSPORT: ${SSPORT}
|
||||
stop_grace_period: 1s
|
||||
command: ["/bin/sh", "/start_ss.sh"]
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user