-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
59 lines (54 loc) · 1.22 KB
/
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
volumes:
tsdb_data:
certbot:
services:
dhtlogger:
container_name: pi-humidity-dhtlogger
image: haydeni0/pi-humidity:python
tty: true
stdin_open: true
depends_on:
- timescaledb
volumes:
- ./src:/src
- ./shared:/shared
entrypoint: [ "python", "-u", "/src/dhtLogger.py" ]
env_file:
- postgres.env
- password.env
devices:
# Access to GPIO pins (https://stackoverflow.com/a/48234752)
- /dev/gpiomem
restart: always
dhtplotter:
container_name: pi-humidity-dhtplotter
image: haydeni0/pi-humidity:python
tty: true
stdin_open: true
depends_on:
- timescaledb
volumes:
- ./src:/src
- ./shared:/shared
- certbot:/etc/letsencrypt
env_file:
- postgres.env
- password.env
- webserver.env
restart: always
ports:
- 80:80
- 443:443
entrypoint: [ "/src/dhtplotter_entrypoint.bash" ]
timescaledb:
container_name: pi-humidity-timescaledb
image: timescale/timescaledb:2.10.2-pg14
ports:
- 5432:5432
volumes:
- tsdb_data:/var/lib/postgresql/data
- ./db_backups:/db_backups
env_file:
- postgres.env
- password.env
restart: always