2026-04-15 14:19:24 +00:00
|
|
|
# Continuwuity - Using Caddy Docker Image
|
|
|
|
|
|
2024-07-08 18:31:08 +02:00
|
|
|
services:
|
|
|
|
|
caddy:
|
2026-04-16 10:48:26 +00:00
|
|
|
image: "docker.io/caddy:latest"
|
2024-07-08 18:31:08 +02:00
|
|
|
ports:
|
|
|
|
|
- 80:80
|
|
|
|
|
- 443:443
|
2026-03-28 17:26:01 +00:00
|
|
|
- 8448:8448
|
2024-07-08 18:31:08 +02:00
|
|
|
networks:
|
|
|
|
|
- caddy
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data:/data
|
|
|
|
|
restart: unless-stopped
|
2026-03-28 17:26:01 +00:00
|
|
|
configs:
|
|
|
|
|
- source: Caddyfile
|
|
|
|
|
target: /etc/caddy/Caddyfile
|
2026-04-04 07:03:12 +00:00
|
|
|
|
2024-07-08 18:31:08 +02:00
|
|
|
homeserver:
|
2026-04-16 10:48:26 +00:00
|
|
|
image: "forgejo.ellis.link/continuwuation/continuwuity:latest"
|
2024-07-08 18:31:08 +02:00
|
|
|
restart: unless-stopped
|
2026-03-11 14:59:58 +01:00
|
|
|
command: /sbin/conduwuit
|
2024-07-08 18:31:08 +02:00
|
|
|
volumes:
|
2025-05-10 20:37:08 +01:00
|
|
|
- db:/var/lib/continuwuity
|
2026-04-04 07:03:12 +00:00
|
|
|
- ./continuwuity-resolv.conf:/etc/resolv.conf # use custom resolvers rather than Docker's
|
2025-05-10 20:37:08 +01:00
|
|
|
#- ./continuwuity.toml:/etc/continuwuity.toml
|
2024-07-08 18:31:08 +02:00
|
|
|
environment:
|
2026-03-28 17:26:01 +00:00
|
|
|
CONTINUWUITY_SERVER_NAME: example.com
|
2025-05-10 20:37:08 +01:00
|
|
|
CONTINUWUITY_DATABASE_PATH: /var/lib/continuwuity
|
|
|
|
|
CONTINUWUITY_ADDRESS: 0.0.0.0
|
2026-03-28 09:22:40 +00:00
|
|
|
CONTINUWUITY_PORT: 8008
|
2025-05-10 20:37:08 +01:00
|
|
|
#CONTINUWUITY_CONFIG: '/etc/continuwuity.toml' # Uncomment if you mapped config toml above
|
2026-04-04 10:46:28 +00:00
|
|
|
|
|
|
|
|
## (Optional) Serve .well-known files to tell others to reach Continuwuity on port :443
|
|
|
|
|
## If you do this, remove all routes to port :8448 from the compose and Caddyfile
|
|
|
|
|
# CONTINUWUITY_WELL_KNOWN: |
|
|
|
|
|
# {
|
|
|
|
|
# client=https://example.com,
|
|
|
|
|
# server=example.com:443
|
|
|
|
|
# }
|
|
|
|
|
|
2024-07-08 18:31:08 +02:00
|
|
|
networks:
|
2026-03-30 09:14:08 +00:00
|
|
|
- caddy
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
caddy:
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
db:
|
|
|
|
|
|
|
|
|
|
configs:
|
2026-04-15 14:19:24 +00:00
|
|
|
Caddyfile:
|
2026-03-30 09:14:08 +00:00
|
|
|
content: |
|
2026-04-16 10:48:26 +00:00
|
|
|
https://example.com:443, https://example.com:8448 {
|
2026-03-30 09:14:08 +00:00
|
|
|
reverse_proxy http://homeserver:8008
|
|
|
|
|
}
|