37 lines
648 B
YAML
37 lines
648 B
YAML
services:
|
|
hubproxy:
|
|
build:
|
|
context: .
|
|
container_name: hubproxy
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- ./src/config.toml:/root/config.toml
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "1g"
|
|
max-file: "2"
|
|
|
|
|
|
caddy:
|
|
image: caddy:latest
|
|
restart: unless-stopped
|
|
cap_add:
|
|
- NET_ADMIN
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "443:443/udp"
|
|
volumes:
|
|
- $PWD/conf:/etc/caddy
|
|
- $PWD/site:/srv
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
depends_on:
|
|
- hubproxy
|
|
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config: |