add watchtower to docker compose
This commit is contained in:
parent
db7caefb96
commit
c240c4d8b7
2 changed files with 16 additions and 9 deletions
|
@ -6,4 +6,11 @@ services:
|
|||
volumes:
|
||||
- ./data/:/app/data
|
||||
ports:
|
||||
- '7001:7001'
|
||||
- '7001:7001'
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /root/.docker/config.json:/config.json
|
||||
command: --interval 30
|
|
@ -29,6 +29,13 @@ services:
|
|||
- ./data/:/app/data
|
||||
ports:
|
||||
- '7001:7001'
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /root/.docker/config.json:/config.json
|
||||
command: --interval 30
|
||||
```
|
||||
|
||||
Start the container:
|
||||
|
@ -41,11 +48,4 @@ Go to your dashboard `http://localhost:7001` to check if everything go smoothly.
|
|||
|
||||
## Update Magma automatically
|
||||
|
||||
To get our regular update, you should install watchtower too.
|
||||
|
||||
```
|
||||
docker run --detach \
|
||||
--name watchtower \
|
||||
--volume /var/run/docker.sock:/var/run/docker.sock \
|
||||
containrrr/watchtower
|
||||
```
|
||||
To get our regular update, you should install watchtower too. We added it to docker compose, but if you already had or don't want to then remove it.
|
Loading…
Add table
Reference in a new issue