-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 1.02 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
version: '3.2'
services:
strangerweb:
#build:
# dockerfile: dockerfile-sweb.yml
# context: .
image: drfresh613/strangerweb:0.0.1
volumes:
- /tmp/sweb_data:/opt/strangerweb/data
ports:
- "80:8000"
restart: always
deploy:
labels:
com.example.description: "Strangerlights web application"
replicas: 3
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
slightstalkie:
#build:
# dockerfile: dockerfile-slights.yml
# context: .
image: drfresh613/slightstalkie:0.0.1
privileged: true
environment:
SWEB_HOST: strangerweb:8000
devices:
- /dev/ttyACM0:/dev/ttyACM0
deploy:
labels:
com.example.description: "Stringerlights message handler"
placement:
constraints:
- node.labels.type = arduino
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
depends_on:
- strangerweb
restart: always