Commit 809eab63 authored by David's avatar David

Add watchtower to it to keep my containers updated

parent 01fd68ed
version: '3.1' version: '3.1'
services: services:
watchtower:
container_name: watchtower
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - ./watchtower-config.json:/config.json:ro
command: --cleanup --label-enable
restart: always
nginx: nginx:
container_name: nginx
depends_on: depends_on:
- wordpress - wordpress
image: nginx:latest image: nginx:latest
...@@ -14,7 +24,11 @@ services: ...@@ -14,7 +24,11 @@ services:
- ./wordpress:/var/www/html - ./wordpress:/var/www/html
networks: networks:
- wp_net - wp_net
labels:
- com.centurylinklabs.watchtower.enable=true
wordpress: wordpress:
container_name: wordpress
# Not using my custom image, because building snuffleupagus is proving to be more irritating than it's worth # Not using my custom image, because building snuffleupagus is proving to be more irritating than it's worth
#image: gitlab-registry.light.kow.is/kowis-projects/wordpress-container #image: gitlab-registry.light.kow.is/kowis-projects/wordpress-container
image: wordpress:php7.3-fpm image: wordpress:php7.3-fpm
...@@ -32,8 +46,11 @@ services: ...@@ -32,8 +46,11 @@ services:
networks: networks:
- wp_net - wp_net
- db_net - db_net
labels:
- com.centurylinklabs.watchtower.enable=true
db: db:
container_name: db
image: mariadb:10 image: mariadb:10
restart: always restart: always
volumes: volumes:
...@@ -48,6 +65,8 @@ services: ...@@ -48,6 +65,8 @@ services:
- db_password - db_password
networks: networks:
- db_net - db_net
labels:
- com.centurylinklabs.watchtower.enable=true
secrets: secrets:
db_password: db_password:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment