-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.https.yml
More file actions
18 lines (17 loc) · 743 Bytes
/
docker-compose.https.yml
File metadata and controls
18 lines (17 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Caddy / automatic-HTTPS overlay
#
# Use this file alongside docker-compose.yml when running the "https" profile
# so that Caddy owns ports 80 and 443 on the host and the frontend container
# is only reachable internally via the mailflow Docker network.
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.https.yml --profile https up -d --build
#
# Requires Docker Compose 2.21+ (for the !reset tag).
# DOMAIN and ACME_EMAIL must be set in .env.
services:
frontend:
# Remove the host-port binding — Caddy proxies to frontend:443 internally.
# The certs volume is kept because nginx still serves HTTPS internally
# (Caddy connects with tls_insecure_skip_verify via the Docker network).
ports: !reset []