mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Move docker-compose.yaml to the repo root and add docker-compose.prod.yaml that stands up a Caddy 2 sidecar on 80/443 proxying to the fabro service on 32276 (the CLI's default port). Auto-HTTPS is handled by Caddy when FABRO_DOMAIN is set; certs persist in named volumes. Switch the container's internal listener from 80 to 32276, which lets us drop libcap2-bin and the CAP_NET_BIND_SERVICE file capability.
20 lines
334 B
YAML
20 lines
334 B
YAML
services:
|
|
fabro:
|
|
restart: unless-stopped
|
|
|
|
caddy:
|
|
image: caddy:2-alpine
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
depends_on:
|
|
- fabro
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config:
|