mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00
33 lines
1.1 KiB
YAML
Executable file
33 lines
1.1 KiB
YAML
Executable file
services:
|
|
frontend:
|
|
image: ghcr.io/yusing/go-proxy-frontend:latest
|
|
container_name: go-proxy-frontend
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
env_file: .env
|
|
depends_on:
|
|
- app
|
|
# if you also want to proxy the WebUI and access it via gp.y.z
|
|
# labels:
|
|
# - proxy.aliases=gp
|
|
# - proxy.gp.port=3000
|
|
app:
|
|
image: ghcr.io/yusing/go-proxy:latest
|
|
container_name: go-proxy
|
|
restart: always
|
|
network_mode: host
|
|
env_file: .env
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./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
|