-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
55 lines (53 loc) · 1.34 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '2.1'
volumes:
mqtt_persist:
services:
beenhugged:
build:
context: beenhugged
working_dir: /code
command: python3 ./beenhugged.py
volumes:
- ./beenhugged:/code
environment:
TEST_MODE: 1
pushover_token: ${pushover_token}
pushover_key: ${pushover_key}
twitter_ckey: ${twitter_ckey}
twitter_csecret: ${twitter_csecret}
twitter_akey: ${twitter_akey}
twitter_asecret: ${twitter_asecret}
mqtt_user: ${mqtt_user}
mqtt_pass: ${mqtt_pass}
TWITTER_HANDLE: ${twitter_handle}
TIMEZONE: Pacific/Auckland
links:
- "mosquitto"
heartbeat:
build:
context: heartbeat
working_dir: /code
command: python3 ./heartbeat.py
volumes:
- ./heartbeat:/code
environment:
mqtt_user: ${mqtt_user}
mqtt_pass: ${mqtt_pass}
links:
- "mosquitto"
mosquitto:
build:
context: mosquitto
command: /run-dev.sh
ports:
- "8883:8883"
- "1883:1883"
environment:
mqtt_user: ${mqtt_user}
mqtt_pass: ${mqtt_pass}
volumes:
- ./mosquitto/mosquitto.conf:/etc/mosquitto/mosquitto.conf
- mqtt_persist:/opt/persist
- ./mosquitto/run-dev.sh:/run-dev.sh
- /opt/certs/fullchain.pem:/var/lib/mosquitto/fullchain.pem
- /opt/certs/privkey.pem:/var/lib/mosquitto/privkey.pem