-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.guac.yml
38 lines (37 loc) · 1.04 KB
/
compose.guac.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
services:
guac:
image: guacamole/guacamole
networks:
- default
- main_default
environment:
GUACD_HOSTNAME: guacd
POSTGRES_DATABASE: postgres
POSTGRES_HOSTNAME: postgres
POSTGRES_PASSWORD: toor
POSTGRES_USER: postgres
depends_on:
- postgres
- guacd
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.guac.rule=Host(`example.test`)"
- "traefik.http.routers.guac.tls.certresolver=myresolver"
- "traefik.http.services.guac.loadbalancer.server.port=8080"
- "traefik.http.routers.guac.middlewares=guac"
- "traefik.http.middlewares.guac.addprefix.prefix=/guacamole"
guacd:
image: guacamole/guacd:latest
postgres:
image: postgres:16
environment:
POSTGRES_PASSWORD: toor
POSTGRES_HOST_AUTH_METHOD: password
volumes:
- ./guac/postgres:/var/lib/postgresql/data
- ./guac/initdb.sql:/docker-entrypoint-initdb.d/initdb.sql
networks:
main_default:
external: true
name: main_default