-
Notifications
You must be signed in to change notification settings - Fork 1
/
guacamole.yml
46 lines (45 loc) · 1.48 KB
/
guacamole.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
services:
# Guacamole - Remote desktop, SSH, on Telnet on any HTML5 Browser
# Create all databases and tables first
guacamole:
image: guacamole/guacamole:latest
container_name: guacamole
security_opt:
- no-new-privileges:true
restart: unless-stopped
profiles: ["apps", "all"]
networks:
- t3_proxy
- default
ports:
- "8083:8080"
environment:
GUACD_HOSTNAME: guacd
MYSQL_HOSTNAME: $MARIADB_HOST
MYSQL_PORT: 3306
MYSQL_DATABASE_FILE: /run/secrets/guac_db_name
MYSQL_USER_FILE: /run/secrets/guac_mysql_user
MYSQL_PASSWORD_FILE: /run/secrets/guac_mysql_password
secrets:
- guac_db_name
- guac_mysql_user
- guac_mysql_password
labels:
- "traefik.enable=true"
# HTTP Routers
- "traefik.http.routers.guacamole-rtr.entrypoints=websecure"
- "traefik.http.routers.guacamole-rtr.rule=Host(`guac.$DOMAINNAME_HS`)"
# Middlewares
- "traefik.http.routers.guacamole-rtr.middlewares=chain-oauth@file,add-guacamole"
- "traefik.http.middlewares.add-guacamole.addPrefix.prefix=/guacamole"
# HTTP Services
- "traefik.http.routers.guacamole-rtr.service=guacamole-svc"
- "traefik.http.services.guacamole-svc.loadbalancer.server.port=8080"
# Guacamole Daemon - Needed for Guacamole
guacd:
image: guacamole/guacd
container_name: guacd
security_opt:
- no-new-privileges:true
restart: unless-stopped
profiles: ["apps", "all"]