mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
45 lines
1.3 KiB
YAML
Executable file
45 lines
1.3 KiB
YAML
Executable file
---
|
|
services:
|
|
frontend:
|
|
image: ghcr.io/yusing/godoxy-frontend:latest
|
|
container_name: godoxy-frontend
|
|
restart: unless-stopped
|
|
network_mode: host # do not change this
|
|
env_file: .env
|
|
depends_on:
|
|
- app
|
|
environment:
|
|
PORT: ${GODOXY_FRONTEND_PORT:-3000}
|
|
|
|
# modify below to fit your needs
|
|
labels:
|
|
proxy.aliases: godoxy
|
|
proxy.godoxy.port: ${GODOXY_FRONTEND_PORT:-3000}
|
|
# proxy.godoxy.middlewares.cidr_whitelist: |
|
|
# status: 403
|
|
# message: IP not allowed
|
|
# allow:
|
|
# - 127.0.0.1
|
|
# - 10.0.0.0/8
|
|
# - 192.168.0.0/16
|
|
# - 172.16.0.0/12
|
|
app:
|
|
image: ghcr.io/yusing/godoxy:latest
|
|
container_name: godoxy
|
|
restart: always
|
|
network_mode: host # do not change this
|
|
env_file: .env
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./config:/app/config
|
|
- ./logs:/app/logs
|
|
- ./error_pages:/app/error_pages
|
|
- ./data:/app/data
|
|
|
|
# To use autocert, certs will be stored in "./certs".
|
|
# You can also use a docker volume to store it
|
|
- ./certs:/app/certs
|
|
|
|
# remove "./certs:/app/certs" and uncomment below to use existing certificate
|
|
# - /path/to/certs/cert.crt:/app/certs/cert.crt
|
|
# - /path/to/certs/priv.key:/app/certs/priv.key
|