-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
58 lines (52 loc) · 1.02 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
version: "3.8"
services:
app:
restart: always
build:
context: app
dockerfile: ../dockerfiles/app.Dockerfile
ports:
- 4173:4173
depends_on:
- controller
networks:
- stupid_network
worker:
restart: always
build:
context: .
dockerfile: dockerfiles/worker.Dockerfile
devices:
- "/dev/i2c-1:/dev/i2c-1"
- "/dev/gpiomem:/dev/gpiomem"
- "/dev/mem:/dev/mem"
- "/dev/gpiochip0:/dev/gpiochip0"
depends_on:
- controller
networks:
- stupid_network
controller:
restart: always
build:
context: .
dockerfile: dockerfiles/controller.Dockerfile
ports:
- 8080:8080
depends_on:
- redis
networks:
- stupid_network
redis:
restart: always
image: redis/redis-stack-server:latest
networks:
- stupid_network
volumes:
- redis_data:/data
ports:
- 6379:6379 # for sneaky access
networks:
stupid_network:
driver: bridge
volumes:
redis_data: