Switch out watchtower with Ouroboros

This commit is contained in:
Jesper Hess 2019-03-04 16:28:51 +01:00
parent 9ff11808ce
commit 2f413b3e99
Signed by untrusted user: graffen
GPG key ID: 351A89E40D763F0F
4 changed files with 21 additions and 15 deletions

View file

@ -23,7 +23,7 @@
- docker_registry - docker_registry
- drone - drone
- websites - websites
- watchtower - ouroboros
smtp_host: postfix smtp_host: postfix
smtp_port: 587 smtp_port: 587

View file

@ -0,0 +1,18 @@
---
- name: ouroboros container
docker_container:
name: ouroboros
image: pyouroboros/ouroboros
restart_policy: unless-stopped
networks:
- name: external_services
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/root/.docker/config.json
env:
LABEL_ENABLE: "true"
LABELS_ONLY: "true"
CLEANUP: "true"
LATEST: "true"
CRON: "*/1 * * * *"

View file

@ -1,12 +0,0 @@
---
- name: watchtower container
docker_container:
name: watchtower
image: v2tec/watchtower
restart_policy: unless-stopped
networks:
- name: external_services
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: ["--label-enable"]

View file

@ -12,7 +12,7 @@
LETSENCRYPT_HOST: "{{ data_coop_website.domain }}" LETSENCRYPT_HOST: "{{ data_coop_website.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
labels: labels:
com.centurylinklabs.watchtower.enable: "true" com.ouroboros.enable: "true"
- name: setup cryptohagen.dk website docker container - name: setup cryptohagen.dk website docker container
docker_container: docker_container:
@ -26,4 +26,4 @@
LETSENCRYPT_HOST: "{{ cryptohagen_website.domain }}" LETSENCRYPT_HOST: "{{ cryptohagen_website.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
labels: labels:
com.centurylinklabs.watchtower.enable: "true" com.ouroboros.enable: "true"