version: '3' services: app: image: ghcr.io/yusing/go-proxy:latest container_name: go-proxy restart: always networks: # ^also add here - default ports: - 80:80 # http proxy - 8080:8080 # http panel # - 443:443 # optional, https proxy # - 8443:8443 # optional, https panel # optional, if you declared any tcp/udp proxy, set a range you want to use # - 20000:20100/tcp # - 20000:20100/udp volumes: - ./config:/app/config # if local docker provider is used - /var/run/docker.sock:/var/run/docker.sock:ro # use existing certificate # - /path/to/cert.pem:/app/certs/cert.crt:ro # - /path/to/privkey.pem:/app/certs/priv.key:ro # store autocert obtained cert # - ./certs:/app/certs # workaround for "lookup: no such host" # dns: # - 127.0.0.1 # if you have container running in "host" network mode # extra_hosts: # - host.docker.internal:host-gateway logging: driver: 'json-file' options: max-file: '1' max-size: 128k networks: # ^you may add other external networks default: driver: bridge