update 2024-04-22

Changes:
- add jinja2 template engine instead of string-replacing
- fix certbot cron usage
- replace json servers configuration with yaml
This commit is contained in:
2024-04-22 17:58:41 +03:00
committed by Aleksei Sokol
parent 40f9459826
commit 16bc1c0db7
16 changed files with 292 additions and 274 deletions

View File

@@ -1,40 +1,38 @@
version: '3.4'
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
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