Commit 809eab63 authored by David's avatar David

Add watchtower to it to keep my containers updated

parent 01fd68ed
version: '3.1'
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:
container_name: nginx
depends_on:
- wordpress
image: nginx:latest
......@@ -14,7 +24,11 @@ services:
- ./wordpress:/var/www/html
networks:
- wp_net
labels:
- com.centurylinklabs.watchtower.enable=true
wordpress:
container_name: wordpress
# 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: wordpress:php7.3-fpm
......@@ -32,8 +46,11 @@ services:
networks:
- wp_net
- db_net
labels:
- com.centurylinklabs.watchtower.enable=true
db:
container_name: db
image: mariadb:10
restart: always
volumes:
......@@ -48,6 +65,8 @@ services:
- db_password
networks:
- db_net
labels:
- com.centurylinklabs.watchtower.enable=true
secrets:
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