Created
May 30, 2024 12:11
-
-
Save yvesh/bdfab210b339beac6513aaae6975aff8 to your computer and use it in GitHub Desktop.
Apache Guacamole 2024 - docker-compose.yml setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# networks | |
# create a network 'guacamole_net' in mode 'bridged' | |
networks: | |
guacamole_net: | |
driver: bridge | |
# services | |
services: | |
# guacd | |
guacd: | |
container_name: guacamole_backend | |
image: guacamole/guacd:latest | |
networks: | |
guacamole_net: | |
restart: always | |
volumes: | |
- ./drive:/drive:rw | |
- ./record:/var/lib/guacamole/recordings:rw | |
# postgres | |
postgres: | |
container_name: guacamole_database | |
environment: | |
PGDATA: /var/lib/postgresql/data/guacamole | |
POSTGRES_DB: guacamole_db | |
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}' | |
POSTGRES_USER: '${POSTGRES_USER}' | |
image: postgres:latest | |
networks: | |
guacamole_net: | |
restart: always | |
volumes: | |
- ./init:/docker-entrypoint-initdb.d:ro | |
- ./data:/var/lib/postgresql/data:rw | |
# guacamole | |
guacamole: | |
container_name: guacamole_frontend | |
depends_on: | |
- guacd | |
- postgres | |
environment: | |
GUACD_HOSTNAME: guacd | |
POSTGRESQL_DATABASE: guacamole_db | |
POSTGRESQL_HOSTNAME: postgres | |
POSTGRESQL_PASSWORD: '${POSTGRES_PASSWORD}' | |
POSTGRESQL_USER: '${POSTGRES_USER}' | |
POSTGRESQL_AUTO_CREATE_ACCOUNTS: true | |
image: guacamole/guacamole:latest | |
ports: | |
- 8080:8080 | |
links: | |
- guacd | |
networks: | |
- guacamole_net | |
restart: always | |
volumes: | |
- ./drive:/drive:rw | |
- ./record:/var/lib/guacamole/recordings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSTGRES_USER="guacamole" | |
POSTGRES_PASSWORD="VerySecureMaybe" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment