aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-04-15 21:24:03 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-04-15 21:24:11 +0300
commit88d39710cb6fb0825c99b21f980f9b416803c3e6 (patch)
tree8040937e9c1606a242803dbdd51d58e9becbe2dd /docker-compose.yml
parentapp/stabilization: add exported files to UI (diff)
downloadsoko-88d39710cb6fb0825c99b21f980f9b416803c3e6.tar.gz
soko-88d39710cb6fb0825c99b21f980f9b416803c3e6.tar.bz2
soko-88d39710cb6fb0825c99b21f980f9b416803c3e6.zip
docker-compose: change bind dir for watchtower
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index def3280..8cdafcc 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -69,6 +69,11 @@ services:
image: containrrr/watchtower:0.3.10
restart: always
volumes:
- - /var/run/docker.sock:/var/run/docker.sock
+ # docker has an issue, that if it mounts a socket directly, upon daemon restart,
+ # the socket is recreated and the new one isn't mounted. Mounting the whole /var/run
+ # directory is scatchy, so add another socket position for the daemon to create, and
+ # bind mount it. Add to docker daemon those args:
+ # --host=unix:///var/run/docker.sock --host=unix:///var/run/docker-watchtower/docker.sock
+ - /var/run/docker-watchtower/:/var/run/
- /root/.docker/config.json:/config.json
command: --label-enable