mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-04-25 16:02:08 +00:00
* Add compose and included Caddyfile using caddy:latest official image * Rename old Caddy files as caddy-labels.yml and new one as caddy.yml * Remove external: true network in caddy-labels.yml to simplify docs * Move all Caddy selections to top, unprioritize Traefik and other RPs
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
networks:
|
|
caddy:
|
|
|
|
volumes:
|
|
db:
|
|
|
|
configs:
|
|
dynamic.yml:
|
|
content: |
|
|
https://example.com, https://example.com:8448 {
|
|
reverse_proxy http://homeserver:8008
|
|
}
|
|
|
|
services:
|
|
caddy:
|
|
image: docker.io/caddy:latest
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
- 8448:8448
|
|
networks:
|
|
- caddy
|
|
volumes:
|
|
- ./data:/data
|
|
restart: unless-stopped
|
|
configs:
|
|
- source: Caddyfile
|
|
target: /etc/caddy/Caddyfile
|
|
|
|
homeserver:
|
|
image: forgejo.ellis.link/continuwuation/continuwuity:latest
|
|
restart: unless-stopped
|
|
command: /sbin/conduwuit
|
|
volumes:
|
|
- db:/var/lib/continuwuity
|
|
- /etc/resolv.conf:/etc/resolv.conf:ro # Use the host's DNS resolver rather than Docker's.
|
|
#- ./continuwuity.toml:/etc/continuwuity.toml
|
|
environment:
|
|
CONTINUWUITY_SERVER_NAME: example.com
|
|
CONTINUWUITY_DATABASE_PATH: /var/lib/continuwuity
|
|
CONTINUWUITY_ADDRESS: 0.0.0.0
|
|
CONTINUWUITY_PORT: 8008
|
|
#CONTINUWUITY_CONFIG: '/etc/continuwuity.toml' # Uncomment if you mapped config toml above
|
|
networks:
|
|
- caddy |