Compose-Examples/examples/guacamole/docker-compose.yml

64 lines
1.9 KiB
YAML
Raw Normal View History

2024-02-15 12:14:56 +00:00
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:
2024-09-28 13:08:35 +00:00
image: postgres:16-alpine
2024-02-15 12:14:56 +00:00
container_name: guacamole-db
restart: always
expose:
- 5432
2024-02-15 12:14:56 +00:00
environment:
- PGDATA=/var/lib/postgresql/data/guacamole
- POSTGRES_DB=guacamole_db
- POSTGRES_USER=guacamole_user
2024-08-29 11:56:46 +00:00
- POSTGRES_PASSWORD=ChooseYourOwnPasswordHere1234
2024-02-15 12:14:56 +00:00
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:
2024-02-15 13:44:39 +00:00
- guacd
- postgres
2024-02-15 12:14:56 +00:00
environment:
- GUACD_HOSTNAME=guacd
2024-08-29 11:56:46 +00:00
- POSTGRESQL_HOSTNAME=postgres
- POSTGRESQL_DATABASE=guacamole_db
- POSTGRESQL_USER=guacamole_user
- POSTGRESQL_PASSWORD=ChooseYourOwnPasswordHere1234
2024-02-15 12:14:56 +00:00
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`)
2024-02-15 12:14:56 +00:00
# - 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