Skip to content

Commit 1fd6c63

Browse files
authored
Add Watchtower labels to services and update image
1 parent e406b1c commit 1fd6c63

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

docker-compose-deploy.yaml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ services:
22
db:
33
image: postgres:17-alpine
44
container_name: db
5+
labels:
6+
com.centurylinklabs.watchtower.enable: true
57
ports:
68
- "5432:5432"
79
volumes:
@@ -14,6 +16,8 @@ services:
1416

1517
caddy:
1618
image: caddy:2.8-alpine
19+
labels:
20+
com.centurylinklabs.watchtower.enable: true
1721
container_name: caddy
1822
ports:
1923
- "80:80"
@@ -31,47 +35,49 @@ services:
3135
backend:
3236
image: ghcr.io/${GITHUB_REPOSITORY_OWNER}/${GITHUB_REPOSITORY_NAME}-backend:${GITHUB_REF_NAME:-main}
3337
container_name: backend
38+
labels:
39+
com.centurylinklabs.watchtower.enable: true
3440
env_file:
3541
- .env
3642
ports:
3743
- "8000:8000"
3844
depends_on:
3945
- db
4046
- docling-serve
41-
labels:
42-
com.centurylinklabs.watchtower.enable: true
4347
restart: always
4448

4549
frontend:
4650
image: ghcr.io/${GITHUB_REPOSITORY_OWNER}/${GITHUB_REPOSITORY_NAME}-frontend:${GITHUB_REF_NAME:-main}
4751
container_name: frontend
52+
labels:
53+
com.centurylinklabs.watchtower.enable: true
4854
environment:
4955
- NUXT_PUBLIC_API_BASE=https://tutor.ethz.ch/api
5056
ports:
5157
- "3000:80"
5258
depends_on:
5359
- backend
54-
labels:
55-
com.centurylinklabs.watchtower.enable: true
5660
restart: always
5761

5862
docling-serve:
5963
image: ghcr.io/${GITHUB_REPOSITORY_OWNER}/${GITHUB_REPOSITORY_NAME}-docling-serve:${GITHUB_REF_NAME:-main}
6064
container_name: docling-serve
61-
env_file:
62-
- .env
65+
labels:
66+
com.centurylinklabs.watchtower.enable: true
6367
ports:
6468
- "5001:5001"
69+
env_file:
70+
- .env
6571
depends_on:
6672
- db
67-
labels:
68-
com.centurylinklabs.watchtower.enable: true
6973
restart: always
7074

75+
7176
watchtower:
72-
image: containrrr/watchtower:latest
77+
image: nickfedor/watchtower
78+
container_name: watchtower
7379
volumes:
7480
- /var/run/docker.sock:/var/run/docker.sock
7581
- /root/.docker/config.json:/config.json
76-
command: --interval 30 --cleanup --label-enable
77-
restart: always
82+
command: --interval 30 --label-enable --cleanup
83+
restart: unless-stopped

0 commit comments

Comments
 (0)