-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
65 lines (43 loc) · 1.25 KB
/
docker-compose.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: "3.3"
services:
traefik:
image: "traefik:v2.9"
container_name: "traefik"
restart: "unless-stopped"
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
piframe-watchtower:
container_name: "piframe-watchtower"
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30
labels:
- "traefik.enable=false"
whoami:
image: "traefik/whoami"
container_name: "whoami"
restart: "unless-stopped"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`piframe`)"
- "traefik.http.routers.whoami.entrypoints=web"
piframe:
image: "conorjf/piframe"
container_name: "piframe"
restart: "unless-stopped"
# Needed for GPIO access.
privileged: true
environment:
- SPOTIBAR_CONFIG_FILE=/app/config/spotibar_config.json
- SPOTIBAR_AUTH_CACHE_FILE=/app/config/spotibar_auth_cache
- MATRIX_HARDWARE_MAPPING=adafruit-hat-pwm
volumes:
- ./config/:/app/config/