-
-
Notifications
You must be signed in to change notification settings - Fork 271
/
docker-compose.yml
63 lines (59 loc) · 1.86 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
services:
guacd:
image: guacamole/guacd
container_name: guacamole-guacd
restart: always
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/guacamole/guacd/drive:/drive:rw
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/guacamole/guacd/record:/record:rw
#networks:
# - proxy
postgres:
image: postgres:16-alpine
container_name: guacamole-db
restart: always
expose:
- 5432
environment:
- PGDATA=/var/lib/postgresql/data/guacamole
- POSTGRES_DB=guacamole_db
- POSTGRES_USER=guacamole_user
- POSTGRES_PASSWORD=ChooseYourOwnPasswordHere1234
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/guacamole/psql/init:/docker-entrypoint-initdb.d:z
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/guacamole/psql/data:/var/lib/postgresql/data:Z
#networks:
# - proxy
guacamole:
image: guacamole/guacamole
container_name: guacamole-ui
restart: always
depends_on:
- guacd
- postgres
environment:
- GUACD_HOSTNAME=guacd
- POSTGRESQL_HOSTNAME=postgres
- POSTGRESQL_DATABASE=guacamole_db
- POSTGRESQL_USER=guacamole_user
- POSTGRESQL_PASSWORD=ChooseYourOwnPasswordHere1234
links:
- guacd
ports:
# Guacamole is on :8080/guacamole, not /.
# Default login is guacadmin:guacadmin
- 8080:8080/tcp
expose:
- 8080
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.docker.network=proxy
# - traefik.http.routers.guacamole.rule=Host(`guacamole.example.com`) && PathPrefix(`/guacamole`)
# - traefik.http.services.guacamole.loadbalancer.server.port=8080
# # Optional part for traefik middlewares
# - traefik.http.routers.guacamole.middlewares=local-ipwhitelist@file,authelia@docker
#networks:
# proxy:
# external: true