Skip to content

Instantly share code, notes, and snippets.

@tuxmartin
Last active March 24, 2020 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxmartin/55c27c57bd5d533f66254d350761b516 to your computer and use it in GitHub Desktop.
Save tuxmartin/55c27c57bd5d533f66254d350761b516 to your computer and use it in GitHub Desktop.
Apache Guacamole
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
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