mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-21 20:04:03 +02:00
update compose example
This commit is contained in:
parent
415f169f48
commit
ac3af49aa7
1 changed files with 29 additions and 28 deletions
|
@ -1,33 +1,34 @@
|
||||||
services:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
image: ghcr.io/yusing/go-proxy-frontend:latest
|
image: ghcr.io/yusing/go-proxy-frontend:latest
|
||||||
container_name: go-proxy-frontend
|
container_name: go-proxy-frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
network_mode: host
|
||||||
labels:
|
# if you also want to proxy the WebUI and access it via gp.y.z
|
||||||
- proxy.aliases=gp
|
# labels:
|
||||||
- proxy.gp.port=3000
|
# - proxy.aliases=gp
|
||||||
depends_on:
|
# - proxy.gp.port=3000
|
||||||
- app
|
depends_on:
|
||||||
app:
|
- app
|
||||||
image: ghcr.io/yusing/go-proxy:latest
|
app:
|
||||||
container_name: go-proxy
|
image: ghcr.io/yusing/go-proxy:latest
|
||||||
restart: always
|
container_name: go-proxy
|
||||||
network_mode: host
|
restart: always
|
||||||
environment:
|
network_mode: host
|
||||||
# (Optional) change this to your timezone to get correct log timestamp
|
environment:
|
||||||
TZ: ETC/UTC
|
# (Optional) change this to your timezone to get correct log timestamp
|
||||||
volumes:
|
TZ: ETC/UTC
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
volumes:
|
||||||
- ./config:/app/config
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- ./config:/app/config
|
||||||
|
|
||||||
# (Optional) choose one of below to enable https
|
# (Optional) choose one of below to enable https
|
||||||
# 1. use existing certificate
|
# 1. use existing certificate
|
||||||
# if your cert is not named `cert.crt` change `cert_path` in `config/config.yml`
|
# 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`
|
# if your cert key is not named `priv.key` change `key_path` in `config/config.yml`
|
||||||
|
|
||||||
# - /path/to/certs:/app/certs
|
# - /path/to/certs:/app/certs
|
||||||
|
|
||||||
# 2. use autocert, certs will be stored in ./certs (or other path you specify)
|
# 2. use autocert, certs will be stored in ./certs (or other path you specify)
|
||||||
|
|
||||||
# - ./certs:/app/certs
|
# - ./certs:/app/certs
|
||||||
|
|
Loading…
Add table
Reference in a new issue