-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
53 lines (50 loc) · 1.15 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
# Docker-compose file for Octoprint Containers
# Version 2.1 for balena compatibility
version: '2.1'
volumes:
octoprint_vol:
services:
# Octoprint itself
octoprint:
build:
context: octoprint
args:
OP_MACHINE_NAME:
release: latest
image: amedee/octoprint-octoprint
restart: always
privileged: true
volumes:
- octoprint_vol:/opt/octoprint/data
# Uncomment next line for "Plain Docker" setup
# - /run/dbus:/host/run/dbus
labels:
io.balena.features.dbus: '1'
# Webcam stream
webcam:
build:
context: webcam
args:
OP_MACHINE_NAME:
image: amedee/octoprint-webcam
restart: always
privileged: true
environment:
WEBCAM_INPUT: "${WEBCAM_INPUT:-input_raspicam.so -fps 5}"
WEBCAM_START: "${WEBCAM_START:-true}"
# http/https proxy
haproxy:
build:
context: haproxy
args:
OP_MACHINE_NAME:
image: amedee/octoprint-haproxy
restart: always
depends_on:
- octoprint
- webcam
volumes:
- octoprint_vol:/opt/haproxy/data
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"