- unistall script for certbot
- update resource limits for some docker container
This commit is contained in:
@@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- dockerhost
|
- dockerhost
|
||||||
- geerlingguy.nginx
|
# - geerlingguy.nginx
|
||||||
- certbot
|
- certbot
|
||||||
# - { role: Datadog.datadog, when: ansible_architecture != 'armv7l' } #does not support armhf architecture. should switch to fluentd or logstash
|
# - { role: Datadog.datadog, when: ansible_architecture != 'armv7l' } #does not support armhf architecture. should switch to fluentd or logstash
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# docker-compose file for logstash
|
# docker-compose file for logstash
|
||||||
# - see https://www.elastic.co/guide/en/logstash/current/_pulling_the_image.html
|
# - see https://www.elastic.co/guide/en/logstash/current/_pulling_the_image.html
|
||||||
#
|
#
|
||||||
# DOCKER_HOST=dkhost03:2376 docker-compose up -d
|
# DOCKER_HOST=dkhost:2376 docker-compose up -d
|
||||||
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml services
|
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml services
|
||||||
|
|
||||||
version: '3'
|
version: '3'
|
||||||
@@ -14,8 +14,8 @@ services:
|
|||||||
- 5000:5000
|
- 5000:5000
|
||||||
environment:
|
environment:
|
||||||
REGISTRY_HTTP_SECRET: aabuioqlwlcpp2
|
REGISTRY_HTTP_SECRET: aabuioqlwlcpp2
|
||||||
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/live/dkregistry.xai-corp.net/fullchain.pem
|
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/live/xai-corp.net/fullchain.pem
|
||||||
REGISTRY_HTTP_TLS_KEY: /certs/live/dkregistry.xai-corp.net/privkey.pem
|
REGISTRY_HTTP_TLS_KEY: /certs/live/xai-corp.net/privkey.pem
|
||||||
# REGISTRY_HTTP_LETSENCRYPT_CACHEFILE: /var/run/letsencrypt.cache
|
# REGISTRY_HTTP_LETSENCRYPT_CACHEFILE: /var/run/letsencrypt.cache
|
||||||
# REGISTRY_HTTP_LETSENCRYPT_EMAIL: r_morgan@sympatico.ca
|
# REGISTRY_HTTP_LETSENCRYPT_EMAIL: r_morgan@sympatico.ca
|
||||||
REGISTRY_HTTP_HOST: https://dkregistry.xai-corp.net:5000
|
REGISTRY_HTTP_HOST: https://dkregistry.xai-corp.net:5000
|
||||||
@@ -25,7 +25,8 @@ services:
|
|||||||
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/shared/dkregistry/data:/var/lib/registry
|
- /opt/shared/dkregistry/data:/var/lib/registry
|
||||||
- /etc/letsencrypt:/certs
|
- /opt/shared/letsencrypt-2:/certs
|
||||||
|
- /opt/shared/letsencrypt-2:/etc/letsencrypt
|
||||||
- /opt/shared/dkregistry/auth:/auth
|
- /opt/shared/dkregistry/auth:/auth
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
@@ -34,8 +35,8 @@ services:
|
|||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
delay: "1s"
|
delay: "1s"
|
||||||
max_attempts: 15
|
max_attempts: 1
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpus: '0.1'
|
cpus: '0.1'
|
||||||
memory: 256M
|
memory: 16M
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
# DOCKER_HOST=192.168.2.41:2376 docker-compose up -d
|
# DOCKER_HOST=192.168.2.41:2376 docker-compose up -d
|
||||||
# DOCKER_HOST=dkhost03:2376 docker stack deploy -c docker-compose.yml sslproxy
|
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml gitea
|
||||||
|
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
@@ -22,3 +22,8 @@ services:
|
|||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
labels:
|
labels:
|
||||||
net.xai-corp.sslproxy.description: proxy ssl calls to non ssl containers
|
net.xai-corp.sslproxy.description: proxy ssl calls to non ssl containers
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '0.5'
|
||||||
|
memory: 96M
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
# restart: always
|
# restart: always
|
||||||
privileged: true
|
# privileged: true
|
||||||
image: "jenkins:alpine"
|
image: "jenkins:alpine"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
@@ -21,6 +21,10 @@ services:
|
|||||||
condition: any
|
condition: any
|
||||||
delay: "5s"
|
delay: "5s"
|
||||||
max_attempts: 1
|
max_attempts: 1
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '2'
|
||||||
|
memory: 1024M
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ todo: set this up as a cron
|
|||||||
|
|
||||||
#install new certs
|
#install new certs
|
||||||
```
|
```
|
||||||
DOCKER_HOST=dkhost:2376 docker run -d \
|
DOCKER_HOST=dkhost01:2376 docker run -d \
|
||||||
-p 80:80 \
|
-p 80:80 \
|
||||||
--name letsencrypt \
|
--name letsencrypt \
|
||||||
-e "LETSENCRYPT_HTTPS_ENABLED=false" \
|
-e "LETSENCRYPT_HTTPS_ENABLED=false" \
|
||||||
-v /opt/shared/letsencrypt-2:/opt/shared/letsencrypt \
|
-v /opt/shared/letsencrypt-2:/etc/letsencrypt \
|
||||||
-e "LETSENCRYPT_EMAIL=r_morgan@sympatico.ca" \
|
-e "LETSENCRYPT_EMAIL=r_morgan@sympatico.ca" \
|
||||||
-e "LETSENCRYPT_DOMAIN1=xai-corp.net" \
|
-e "LETSENCRYPT_DOMAIN1=xai-corp.net" \
|
||||||
-e "LETSENCRYPT_DOMAIN2=git.xai-corp.net" \
|
-e "LETSENCRYPT_DOMAIN2=git.xai-corp.net" \
|
||||||
@@ -28,11 +28,11 @@ DOCKER_HOST=dkhost:2376 docker run -d \
|
|||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
DOCKER_HOST=dkhost:2376 docker run -d \
|
DOCKER_HOST=dkhost01:2376 docker run -d \
|
||||||
-p 80:80 \
|
-p 80:80 \
|
||||||
--name letsencrypt_updates \
|
--name letsencrypt_updates \
|
||||||
-e "LETSENCRYPT_HTTPS_ENABLED=false" \
|
-e "LETSENCRYPT_HTTPS_ENABLED=false" \
|
||||||
-v /opt/shared/letsencrypt-2:/opt/shared/letsencrypt \
|
-v /opt/shared/letsencrypt-2:/etc/letsencrypt \
|
||||||
-e "LETSENCRYPT_EMAIL=r_morgan@sympatico.ca" \
|
-e "LETSENCRYPT_EMAIL=r_morgan@sympatico.ca" \
|
||||||
-e "LETSENCRYPT_DOMAIN1=xai-corp.net" \
|
-e "LETSENCRYPT_DOMAIN1=xai-corp.net" \
|
||||||
-e "LETSENCRYPT_DOMAIN2=git.xai-corp.net" \
|
-e "LETSENCRYPT_DOMAIN2=git.xai-corp.net" \
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
# DOCKER_HOST=192.168.2.41:2376 docker-compose up -d
|
# DOCKER_HOST=192.168.2.41:2376 docker-compose up -d
|
||||||
# DOCKER_HOST=dkhost03:2376 docker stack deploy -c docker-compose.yml dkui
|
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml dkui
|
||||||
|
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
@@ -25,4 +25,8 @@ services:
|
|||||||
max_attempts: 10
|
max_attempts: 10
|
||||||
labels:
|
labels:
|
||||||
net.xai-corp.dkui.description: portainer ui for docker host and swarm management
|
net.xai-corp.dkui.description: portainer ui for docker host and swarm management
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '0.2'
|
||||||
|
memory: 16M
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
---
|
---
|
||||||
# uninstall certbot
|
# uninstall certbot
|
||||||
|
|
||||||
|
- name: stop nginx before removing it
|
||||||
|
service:
|
||||||
|
name: nginx
|
||||||
|
state: stopped
|
||||||
|
|
||||||
- name: uninstall certbot on ubuntu 16.04
|
- name: uninstall certbot on ubuntu 16.04
|
||||||
apt:
|
apt:
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
Reference in New Issue
Block a user