Changes:
- add config validation option via Makefile
- add `default-http{,s}-port` commands to add_servers.py
- update add_servers.py to pass generic parameters to servers in templates
- add nginx_conf.d directory usage for more than one custom nginx configurations
- rename `port` and `ssl_port` to `http{,s}_port` for templates
- add `http{,s}_custom_params` to templates
46 lines
819 B
Plaintext
46 lines
819 B
Plaintext
name: ssl_nginx
|
|
|
|
services:
|
|
certbot:
|
|
container_name: 'global-certbot'
|
|
build:
|
|
context: ./certbot
|
|
args:
|
|
EMAIL: ${EMAIL}
|
|
volumes: &volumes-config
|
|
- ssl:/ssl
|
|
- letsencrypt:/etc/letsencrypt
|
|
depends_on:
|
|
- nginx
|
|
restart: unless-stopped
|
|
|
|
nginx:
|
|
container_name: "global-nginx"
|
|
build: ./nginx
|
|
volumes: *volumes-config
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "50m"
|
|
|
|
volumes:
|
|
ssl:
|
|
name: ssl_nginx_ssl
|
|
driver: local
|
|
driver_opts:
|
|
type: "none"
|
|
o: "bind"
|
|
device: "./data/ssl"
|
|
|
|
letsencrypt:
|
|
name: ssl_nginx_letsencrypt
|
|
driver: local
|
|
driver_opts:
|
|
type: "none"
|
|
o: "bind"
|
|
device: "./data/letsencrypt"
|