Files
ssl-nginx/docker-compose.yaml.example
Aleksei Sokol 2ec44ea292 Version 0.6.0 (2026-03-25)
Changes:
- add config validation container to docker-compose
- add Make file with `up` and `down` commands
- add `default-http{,s}-port` commands to add_servers.py
- 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 `https_custom_params` to templates
2026-03-25 16:43:28 +03:00

53 lines
1.0 KiB
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
validate-config:
container_name: "global-nginx-validate"
build: ./nginx
volumes: *volumes-config
entrypoint: ["/usr/sbin/nginx", "-t"]
nginx:
container_name: "global-nginx"
build: ./nginx
volumes: *volumes-config
depends_on:
validate-config:
condition: service_completed_successfully
ports:
- 80:80
- 443:443
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"
volumes:
ssl:
name: ssl_nginx_ssliver: local
driver_opts:
type: "none"
o: "bind"
device: "./data/ssl"
letsencrypt:
name: ssl_nginx_letsencryptdriver: local
driver_opts:
type: "none"
o: "bind"
device: "./data/letsencrypt"