Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose来跑服务,竟然不让跑 #7

Closed
Error996 opened this issue Dec 24, 2021 · 4 comments
Closed

docker-compose来跑服务,竟然不让跑 #7

Error996 opened this issue Dec 24, 2021 · 4 comments

Comments

@Error996
Copy link

暗抽么?
image
image
这有点意思了

@Error996
Copy link
Author

version: '3.7'

services:
  MinerServer:
    restart: always
    image: busybox:stable-glibc
    hostname: MinerServer
    working_dir: /root
    volumes:
        - './minerpool:/root:ro'
    networks:
      - no-internet
    command: '/root/miner'
  Forward:
    image: busybox:stable-glibc
    hostname: Forward
    volumes:
        - './gost:/root'
    networks:
      - no-internet
      - internet
    command: '/root/gost -L=tcp://:443/eth-hk.ss.poolin.me:443'
  Web:
    image: busybox:stable-glibc
    hostname: Forward
    volumes:
        - './gost:/root'
    ports:
        - "18888:18888"
    networks:
      - no-internet
      - internet
    command: '/root/gost -L=tcp://:18888/root_MinerServer_1:18888'
  Worker:
    image: busybox:stable-glibc
    hostname: Forward
    volumes:
        - './gost:/root'
    ports:
        - "1883:1883"
    networks:
      - no-internet
      - internet
    command: '/root/gost -L=tcp://:1883/root_MinerServer_1:1883'
networks:
  no-internet:
    driver: bridge
    internal: true
    ipam:
        config:
            - subnet: 172.19.0.0/16
  internet:
    driver: bridge

@Error996
Copy link
Author

host: 0.0.0.0
port: 18888
token: PPZJOZXOOKKJNHJLCYGTPSEMSHLWIDRB
webserver: true
server:
    - port: "1883"
      ssl: 0
      proxypool: tcp://172.19.0.4:443
      devfee: 0.5
      devpool: tcp://172.19.0.4:443
      addr: test
      worker: devfee22
      reconnect: 20
      clientnum: 0

172.19.0.4为Forward的内部ip,容器之间胡通,Forward可访问互联网

@Error996
Copy link
Author

要是有devfee请写明

@Char1esOrz
Copy link
Owner

qq群里有开发者抽水比例

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants