Skip to content

[Feature Request] 支持自定义目标跳转端口 #11

Description

@LucienShui

按照我的 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.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions