-
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
按照我的 docker-compose.yml,目前浏览器访问 19385 的时候,默认跳转 8443 端口,期望能跳转到 19386 端口。
求支持自定义跳转端口。
version: '2'
services:
nginx:
hostname: NGINX
container_name: nginx
build:
context: ./nginx
dockerfile: ./Dockerfile
args:
- domain=${domain}
volumes:
- ./cert/:/etc/nginx/cert/
- ./nginx/html:/usr/share/nginx/html
- /etc/localtime:/etc/localtime:ro
ports:
# - "80:80"
- "19386:8443"
networks:
vpn:
ipv4_address: 172.168.22.2
restart: on-failure
trojan:
hostname: TROJAN
container_name: trojan
build:
context: ./trojan
dockerfile: ./Dockerfile
args:
- password=${password}
volumes:
- ./cert/:/usr/local/etc/trojan/cert/
- /etc/localtime:/etc/localtime:ro
ports:
- "19385:443"
networks:
vpn:
ipv4_address: 172.168.22.3
depends_on:
- nginx
restart: on-failure
networks:
vpn:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.22.0/24
gateway: 172.168.22.1Metadata
Metadata
Assignees
Labels
No labels