mirror of
https://github.com/Theodor-Springmann-Stiftung/server-package.git
synced 2025-10-29 09:15:32 +00:00
28 lines
574 B
YAML
28 lines
574 B
YAML
services:
|
|
caddy:
|
|
# Use the official Caddy image
|
|
image: docker.io/library/caddy:latest
|
|
# Always restart the container unless it's manually stopped
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
# HTTP3:
|
|
- "443:443/udp"
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
- ./sites:/etc/caddy/sites
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
networks:
|
|
- caddynet
|
|
|
|
networks:
|
|
caddynet:
|
|
external: true
|
|
|
|
# Define the named volumes for persistent storage
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config:
|