-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
47 lines (41 loc) · 1.03 KB
/
docker-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
---
x-common: &octoprint-common
image: octoprint/octoprint
restart: unless-stopped
healthcheck:
test: "curl -f http://localhost/ || exit 1"
services:
nginx:
container_name: octoprint-nginx
<<: *octoprint-common
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/index.html:/usr/share/nginx/html/index.html:ro
depends_on:
- octoprint-i3mega
- octoprint-cr10
- octoprint-sv06
octoprint-i3mega:
container_name: octoprint-i3mega
<<: *octoprint-common
# devices:
# - /dev/ttyUSB0:/dev/ttyUSB0
volumes:
- ./octoprint/i3mega/:/octoprint/
octoprint-cr10:
container_name: octoprint-cr10
<<: *octoprint-common
# devices:
# - /dev/ttyUSB1:/dev/ttyUSB1
volumes:
- ./octoprint/cr10/:/octoprint/
octoprint-sv06:
container_name: octoprint-sv06
<<: *octoprint-common
# devices:
# - /dev/ttyUSB2:/dev/ttyUSB2
volumes:
- ./octoprint/sv06/:/octoprint/