-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.ssl.yml
More file actions
22 lines (21 loc) · 903 Bytes
/
docker-compose.ssl.yml
File metadata and controls
22 lines (21 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Docker Compose override file for HTTPS/SSL support
#
# Usage:
# docker-compose -f docker-compose.yml -f docker-compose.ssl.yml up -d
#
# Prerequisites:
# 1. SSL certificates obtained via certbot at /etc/letsencrypt/live/<domain>/
# 2. Port 443 open in firewall/NSG
# 3. Update certificate paths below with your actual domain name
services:
nginx:
ports:
# Add HTTPS port (HTTP port 80 is already defined in base docker-compose.yml)
- "443:443"
volumes:
# Override nginx config with SSL-enabled version
- ./nginx-cosmosdb-ssl.conf:/etc/nginx/conf.d/default.conf:ro
# Mount SSL certificates from host
# IMPORTANT: Replace 'your-domain-name' with your actual FQDN
- /etc/letsencrypt/live/your-domain-name/fullchain.pem:/etc/ssl/certs/fullchain.pem:ro
- /etc/letsencrypt/live/your-domain-name/privkey.pem:/etc/ssl/private/privkey.pem:ro