Files
ssl-nginx/docker-compose.yml
kanootoko 16bc1c0db7 update 2024-04-22
Changes:
- add jinja2 template engine instead of string-replacing
- fix certbot cron usage
- replace json servers configuration with yaml
2024-04-22 21:53:47 +03:00

39 lines
640 B
YAML

name: ssl_nginx
services:
certbot:
container_name: 'global-certbot'
build:
context: ./certbot
args:
EMAIL: ${EMAIL}
volumes:
- ssl:/ssl
- letsencrypt:/etc/letsencrypt
depends_on:
- nginx
restart: unless-stopped
nginx:
container_name: 'global-nginx'
build: ./nginx
volumes:
- ssl:/ssl
- letsencrypt:/etc/letsencrypt
ports:
- 80:80
- 443:443
networks:
- hosting_net
restart: unless-stopped
volumes:
ssl:
name: ssl_nginx_ssl
letsencrypt:
name: ssl_nginx_letsencrypt
networks:
hosting_net:
external: true