mirror of
https://github.com/StepanovPlaton/HomeServerServices.git
synced 2026-04-03 20:30:44 +04:00
Refactoring
This commit is contained in:
@@ -13,6 +13,13 @@ services:
|
||||
- ./ssl/www:/var/www/certbot:ro
|
||||
# Подхватываем новые ssl сертификаты
|
||||
command: /bin/sh -c "while :; do sleep 24h & wait $${!}; nginx -s reload; done & nginx -g 'daemon off;'"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.25'
|
||||
memory: 128M
|
||||
reservations:
|
||||
memory: 64M
|
||||
networks:
|
||||
- proxy_network
|
||||
- gitea_network
|
||||
@@ -27,6 +34,13 @@ services:
|
||||
- ./ssl/www:/var/www/certbot
|
||||
# Проверяет сертификаты дважды в сутки. Если осталось менее 30 дней - обновляем
|
||||
entrypoint: "/bin/sh -c 'trap exit TERM; while :; sleep 30s & wait $${!}; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.25'
|
||||
memory: 128M
|
||||
reservations:
|
||||
memory: 64M
|
||||
networks:
|
||||
- proxy_network
|
||||
|
||||
@@ -39,18 +53,26 @@ services:
|
||||
- ./ddns/domains.txt:/app/domains.txt
|
||||
environment:
|
||||
- TZ=Europe/Samara
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.25'
|
||||
memory: 128M
|
||||
reservations:
|
||||
memory: 64M
|
||||
networks:
|
||||
- proxy_network
|
||||
|
||||
networks:
|
||||
proxy_network:
|
||||
name: proxy_network
|
||||
driver: bridge
|
||||
gitea_network:
|
||||
external: true
|
||||
name: gitea_gitea_network
|
||||
name: gitea_network
|
||||
cloud_network:
|
||||
external: true
|
||||
name: cloud_cloud_network
|
||||
name: cloud_network
|
||||
matrix_network:
|
||||
external: true
|
||||
name: matrix_matrix_network
|
||||
name: matrix_network
|
||||
|
||||
Reference in New Issue
Block a user