-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (34 loc) · 1.2 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# version 3+ does different things re: networking from 2.x
# mainly things to support swarms
# aka things we don't need/want
version: '2.4'
services:
wetfish-home:
container_name: wetfish-home
# production: track "prod" tag on ghcr.io
image: ghcr.io/wetfish/wetfish.net:prod
# enable watchtowers to automatically pull changes
labels:
- "com.centurylinklabs.watchtower.enable=true"
# restart unless we stopped it manually
restart: unless-stopped
# normally behind centeral traefik defined in production-manifests/services/traefik
networks:
traefik-backend: {}
# watchtower - automatically pull new container images
# note: this does not update the repo
# if deployment files have changed you will need to git pull && docker compose up -d manually
wetfish-home-watchtower:
image: ghcr.io/containrrr/watchtower:1.5.3
container_name: wetfish-home-watchtower
environment:
- "WATCHTOWER_CLEANUP=true"
- "WATCHTOWER_POLL_INTERVAL=30"
- "WATCHTOWER_LABEL_ENABLE=true"
- "NO_COLOR=true"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
# persistent, externally created
traefik-backend:
external: true