forked from Underground-Ops/underground-nexus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkbench-proxy-deploy.yml
64 lines (61 loc) · 2.26 KB
/
workbench-proxy-deploy.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
version: "3.6"
services:
workbench:
image: linuxserver/webtop:ubuntu-mate
ports:
- "3000"
#shm_size: "1gb" #optional
#restart: unless-stopped
#volumes:
#- workbench0:/config
#- /var/run/docker.sock:/var/run/docker.sock
environment:
- PUID=1000
- PGID=1000
- TZ=America/Colorado
#- SUBFOLDER=/ #optional
networks:
#- default
#- Inner-Athena
- traefik-public
dns:
- 10.20.0.1
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
mode: replicated
replicas: 0
labels:
- traefik.port=3000
- traefik.frontend.rule=Host(`workbench.underground-ops.me`)
# To hash password use (openssl passwd -apr1 | sed -E "s:[\$]:\$\$:g") - default password is "notiaPoint!1"
- traefik.http.middlewares.workbench-auth.basicauth.users=admin:$$apr1$$nIkVDmwy$$xkGIleRnQ0GJ6o96am.cb/
- traefik.docker.network=proxy
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
# https-redirect middleware to redirect HTTP to HTTPS
# It can be re-used by other stacks in other Docker Compose files
- traefik.http.middlewares.https-redirect.redirectscheme.scheme=https
- traefik.http.middlewares.https-redirect.redirectscheme.permanent=true
- traefik.http.routers.workbench-http.rule=Host(`workbench.underground-ops.me`)
- traefik.http.routers.workbench-http.entrypoints=http
- traefik.http.routers.workbench-http.middlewares=https-redirect
- traefik.http.routers.workbench-https.rule=Host(`workbench.underground-ops.me`)
- traefik.http.routers.workbench-https.entrypoints=https
- traefik.http.routers.workbench-https.tls=true
# Use the "le" (Let's Encrypt) resolver created below
- traefik.http.routers.workbench-https.tls.certresolver=le
# Enable HTTP Basic auth, using the middleware created above
- traefik.http.routers.workbench-https.middlewares=workbench-auth
- traefik.http.services.workbench.loadbalancer.server.port=3000
#volumes:
#workbench0:
#external: true
networks:
Inner-Athena:
external: true
traefik-public:
external: true