From 23a09e18b37096c4fb365349422596ff350cae99 Mon Sep 17 00:00:00 2001 From: Y-Less Date: Thu, 22 Apr 2021 15:31:34 +0100 Subject: [PATCH 1/2] Mount config.json in watchtower to monitor private repositories. --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index b53a811..9b597e6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,7 @@ services: restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock + - ${HOME}/.docker/config.json:/config.json traefik: image: traefik:v2.1 From fb4f4f49e1f2caff7295009cc2814dcc9c39ef82 Mon Sep 17 00:00:00 2001 From: Y-Less Date: Thu, 22 Apr 2021 21:23:01 +0100 Subject: [PATCH 2/2] `${HOME}` didn't work. I had to switch to `/root`; however, I'm not sure if that's generally correct. If the mount point comes from the the pico core container, then yes it is, otherwise you'll need `~` (which might also work, it did for pico itself). --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9b597e6..29d4b93 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ services: restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock - - ${HOME}/.docker/config.json:/config.json + - /root/.docker/config.json:/config.json traefik: image: traefik:v2.1