services: app: image: ghcr.io/yusing/go-proxy:latest container_name: go-proxy restart: always network_mode: host volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - ./config:/app/config # (Optional) choose one of below to enable https # 1. use existing certificate # if your cert is not named `cert.crt` change `cert_path` in `config/config.yml` # if your cert key is not named `priv.key` change `key_path` in `config/config.yml` # - /path/to/certs:/app/certs # 2. use autocert, certs will be stored in ./certs (or other path you specify) # - ./certs:/app/certs