Last active
January 21, 2024 15:40
-
-
Save smling/38e9b5a4d442710050938445aedce650 to your computer and use it in GitHub Desktop.
Install Giuacamole with Docker
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
# Get DB schema MySQL format and delete exit container. | |
# Remember run in server to setup structure. | |
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql > initdb.sql | |
docker rm $(docker ps --filter status=exited -q) |
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
DNS=192.168.0.1 | |
docker run --name guacd -p 4822:4822 \ | |
--dns ${DNS} \ | |
--restart unless-stopped \ | |
-d guacamole/guacd |
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
GUACD_CONTAINER_NAME=guacd | |
DNS=192.168.0.1 | |
MYSQL_HOSTNAME=192.168.50.25 | |
MYSQL_USER=guacamole | |
MYSQL_PASSWORD=guacamole | |
MYSQL_DATABASE=guacamole | |
docker run --name guacamole \ | |
--link ${GUACD_CONTAINER_NAME}:guacd \ | |
--dns ${DNS} \ | |
--restart unless-stopped \ | |
-e MYSQL_HOSTNAME=${MYSQL_HOSTNAME} \ | |
-e MYSQL_USER=${MYSQL_USER} \ | |
-e MYSQL_PASSWORD=${MYSQL_PASSWORD} \ | |
-e MYSQL_DATABASE=${MYSQL_DATABASE} \ | |
-p 8080:8080 \ | |
-d guacamole/guacamole |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment