add letsencrypt to the build scripts
This commit is contained in:
@@ -5,12 +5,12 @@
|
||||
|
||||
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose-update.yml services_letsencrypt
|
||||
|
||||
version: '3'
|
||||
version: '3.4'
|
||||
services:
|
||||
|
||||
updates:
|
||||
# image: "dkregistry.xai-corp.net:5000/letsencrypt:latest"
|
||||
image: "blacklabelops/letsencrypt"
|
||||
image: "dkregistry.xai-corp.net:5000/letsencrypt:latest"
|
||||
# image: "blacklabelops/letsencrypt"
|
||||
ports:
|
||||
- 83:80
|
||||
# - 443:443
|
||||
@@ -21,7 +21,7 @@ services:
|
||||
LETSENCRYPT_HTTPS_ENABLED: "false"
|
||||
LETSENCRYPT_TESTCERT: "false"
|
||||
LETSENCRYPT_DEBUG: "true"
|
||||
LETSENCRYPT_JOB_TIME: "0 */30 * * * 0"
|
||||
LETSENCRYPT_JOB_TIME: "0 0 2 15 * *"
|
||||
LETSENCRYPT_DOMAIN1: xai-corp.net
|
||||
LETSENCRYPT_DOMAIN2: git.xai-corp.net
|
||||
LETSENCRYPT_DOMAIN3: xaibox.xai-corp.net
|
||||
@@ -35,18 +35,24 @@ services:
|
||||
LETSENCRYPT_DOMAIN11: mail.xai-corp.net
|
||||
LETSENCRYPT_DOMAIN12: abcapi.xai-corp.net
|
||||
command:
|
||||
- newcert
|
||||
- renewal
|
||||
- --expand
|
||||
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: none
|
||||
condition: any
|
||||
delay: "24h"
|
||||
max_attempts: 7
|
||||
update_config:
|
||||
parallelism: 1
|
||||
delay: 2s
|
||||
order: start-first
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 16M
|
||||
# cpus: '1.5'
|
||||
memory: 64M
|
||||
|
||||
# logging:
|
||||
# driver: fluentd
|
||||
|
||||
Reference in New Issue
Block a user