Last active
March 24, 2020 12:58
-
-
Save tuxmartin/55c27c57bd5d533f66254d350761b516 to your computer and use it in GitHub Desktop.
Apache Guacamole
This file contains 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
version: "3" | |
services: | |
init-guacamole-db: | |
image: guacamole/guacamole:latest | |
command: ["/bin/sh", "-c", "test -e /init/initdb.sql && echo 'init file already exists' || /opt/guacamole/bin/initdb.sh --postgres > /init/initdb.sql" ] | |
volumes: | |
- dbinit:/init | |
postgres: | |
image: postgres:latest | |
restart: unless-stopped | |
volumes: | |
- dbinit:/docker-entrypoint-initdb.d | |
- dbdata:/var/lib/postgresql/data | |
environment: | |
POSTGRES_USER: ${POSTGRES_USER:-guacdb} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-guacdb} | |
depends_on: | |
- init-guacamole-db | |
guacd: | |
image: guacamole/guacd:latest | |
restart: unless-stopped | |
guac: | |
image: guacamole/guacamole:latest | |
restart: unless-stopped | |
ports: | |
- "8080:8080" | |
environment: | |
GUACD_HOSTNAME: guacd | |
POSTGRES_HOSTNAME: postgres | |
POSTGRES_DATABASE: ${POSTGRES_USER:-guacdb} | |
POSTGRES_USER: ${POSTGRES_USER:-guacdb} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-guacdb} | |
depends_on: | |
- postgres | |
- guacd | |
volumes: | |
dbinit: | |
driver: local | |
dbdata: | |
driver: local |
This file contains 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
URL: http://localhost:8080/guacamole/ | |
USERNAME: guacadmin | |
PASSWORD: guacadmin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment