This repository has been archived by the owner on Apr 20, 2022. It is now read-only.
forked from balena-io-experimental/balena-octoprint
-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
66 lines (62 loc) · 2.32 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
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '2'
volumes:
octoprint-data: {}
traefik: {}
services:
octoprint:
build: ./octoprint
restart: always
volumes:
- 'octoprint-data:/data'
privileged: true
ports:
- '5000:5000'
labels:
io.balena.features.supervisor-api: '1'
io.balena.features.balena-api: '1'
traefik.enable: 'true'
traefik.http.services.octoprint.loadbalancer.server.port: '5000'
traefik.http.routers.octoprint-balena.rule: 'HostRegexp(`{subdomain:[a-zA-Z0-9\-]+}.balena-devices.com`)'
traefik.http.routers.octoprint-balena.entrypoints: 'web'
traefik.http.routers.octoprint-balena.tls: 'false'
traefik.http.routers.octoprint.rule: 'HostRegexp(`{subdomain:[a-zA-Z0-9\-]+}.local`) || HostRegexp(`{subdomain:[a-zA-Z0-9\-]+}.localdomain`) || HostRegexp(`{subdomain:[a-zA-Z0-9\-]+}.lan`)'
traefik.http.routers.octoprint.entrypoints: 'websecure'
traefik.http.routers.octoprint.tls: 'true'
traefik.http.routers.octoprint-insecure.rule: 'HostRegexp(`{subdomain:[a-zA-Z0-9\-]+}.local`) || HostRegexp(`{subdomain:[a-zA-Z0-9\-]+}.localdomain`) || HostRegexp(`{subdomain:[a-zA-Z0-9\-]+}.lan`)'
traefik.http.routers.octoprint-insecure.entrypoints: 'web'
traefik.http.routers.octoprint-insecure.middlewares: 'redirect-to-https'
traefik.http.middlewares.redirect-to-https.redirectscheme.scheme: 'https'
traefik.http.middlewares.redirect-to-https.redirectscheme.permanent: 'true'
octodash:
restart: always
build: ./octodash
privileged: true
environment:
- UDEV=1
depends_on:
- octoprint
traefik:
restart: always
build: ./traefik
ports:
- '80:80/tcp'
- '443:443/tcp'
- '8080:8080'
volumes:
- 'traefik:/etc/traefik'
environment:
TRAEFIK_LOG_LEVEL: 'INFO'
TRAEFIK_ENTRYPOINTS_WEBSECURE_ADDRESS: ':443'
TRAEFIK_ENTRYPOINTS_WEB_ADDRESS: ':80'
TRAEFIK_PROVIDERS_DOCKER: 'true'
TRAEFIK_PROVIDERS_DOCKER_EXPOSEDBYDEFAULT: 'false'
TRAEFIK_PROVIDERS_DOCKER_ENDPOINT: 'unix:///var/run/balena.sock'
TRAEFIK_API_INSECURE: 'true'
labels:
io.balena.features.balena-socket: 'true'
mdns-publisher:
build: ./mdns-publisher
environment:
DBUS_SYSTEM_BUS_ADDRESS: 'unix:path=/host/run/dbus/system_bus_socket'
labels:
io.balena.features.dbus: '1'