-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.https.yml
More file actions
38 lines (34 loc) · 891 Bytes
/
docker-compose.https.yml
File metadata and controls
38 lines (34 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# HTTPS overlay — use with:
# docker compose -f docker-compose.yml -f docker-compose.https.yml up -d
#
# Before starting, edit the Caddyfile to set your domain or use :443 for
# automatic self‑signed certs (Caddy's default when no domain is specified).
services:
caddy:
image: caddy:alpine
restart: unless-stopped
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
- "127.0.0.1:443:443/udp" # HTTP/3
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
depends_on:
- dock-dash
networks:
- frontend-net
dock-dash:
# Override: remove public port mapping, only expose internally to Caddy
ports: !override
- "3001"
networks:
- socket-proxy-net
- frontend-net
networks:
frontend-net:
driver: bridge
volumes:
caddy_data:
caddy_config: