-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
60 lines (57 loc) · 1.23 KB
/
compose.yml
File metadata and controls
60 lines (57 loc) · 1.23 KB
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
services:
frontend:
build:
context: ./frontend
image: printsync3d-frontend:latest
platform: linux/arm64
restart: unless-stopped
ports:
- "80:80"
depends_on:
- backend
networks:
- app-network
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
backend:
build:
context: ./backend
image: printsync3d-backend:latest
platform: linux/arm64
privileged: true # give full device capabilities
restart: unless-stopped
expose:
- "8000"
environment:
- PORT=8000
- BAUD_RATE=115200
- DATA_DIRECTORY=/app/data
healthcheck:
test: wget --spider -q http://localhost:8000/health
interval: 1s
timeout: 5s
retries: 5
volumes:
- backenddata:/app/data
- type: bind
source: /dev # bind-mount entire /dev
target: /dev
bind:
propagation: rshared
networks:
- app-network
# Limit the amount of log files for small IoT
# devices with limited amount of disk memory
logging:
driver: json-file
options:
max-size: "30m"
max-file: "3"
volumes:
backenddata:
networks:
app-network:
driver: bridge