forked from asivery/webminidisc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (31 loc) · 1.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (31 loc) · 1.11 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
services:
webminidisc:
build:
context: .
dockerfile: Dockerfile.server
args:
# Served from the root of its own hostname (md.derekr.xyz).
PUBLIC_URL: /
image: webminidisc:local
container_name: webminidisc
restart: unless-stopped
# No published port: the reverse proxy reaches this on the shared network.
# For a quick local check instead, comment `expose` and use:
# ports: ["8080:8080"]
expose:
- "8080"
# WebUSB only works on a secure origin, so whatever proxies this MUST
# terminate TLS for md.derekr.xyz. Over plain HTTP the app loads but can
# never talk to a MiniDisc device.
# Example (Traefik) -- adjust to your proxy:
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.webminidisc.rule=Host(`md.derekr.xyz`)"
# - "traefik.http.routers.webminidisc.entrypoints=websecure"
# - "traefik.http.routers.webminidisc.tls.certresolver=letsencrypt"
# - "traefik.http.services.webminidisc.loadbalancer.server.port=8080"
# networks:
# - proxy
# networks:
# proxy:
# external: true