Created
September 4, 2019 06:18
-
-
Save duzvik/5db47e11065b019ad952ac50e34ff4f6 to your computer and use it in GitHub Desktop.
commands from https://techible.net/apache-guacamole-and-nginx-as-reverse-proxy-with-docker/ to set-up guacamole docker with nginx proxy
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
| #!/bin/bash | |
| sudo apt-get update | |
| sudo snap install docker | |
| sudo docker pull guacamole/guacd | |
| sudo docker pull guacamole/guacamole | |
| sudo docker pull mysql/mysql-server | |
| sudo docker run --name=mysqld -d mysql/mysql-server:5.7 | |
| mysql_pass=$(sudo docker logs mysqld 2>&1 | grep GENERATED|awk '{split($0,a," "); print a[5]}') | |
| sudo docker exec -i mysqld mysql -uroot -p${mysql_pass} -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'root_password';CREATE USER 'root'@'%' IDENTIFIED BY 'root_password';GRANT ALL PRIVILEGES ON * . * TO 'root'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;" | |
| sudo docker exec -i mysqld mysql -uroot -p${mysql_pass} -e 'create databse guacamole' | |
| sudo docker exec -i mysqld mysql -uroot -p${mysql_pass} guacamole< initdb.sql | |
| sudo docker run --name my-guacd -d guacamole/guacd | |
| sudo docker run --name my-guacamole --link my-guacd:guacd \ | |
| --link mysqld:mysql \ | |
| -e MYSQL_DATABASE=guacamole \ | |
| -e MYSQL_USER=root \ | |
| -e MYSQL_PASSWORD=root_password \ | |
| -d -p 8080:8080 guacamole/guacamole | |
| #sudo docker pull nginx | |
| #https://techible.net/apache-guacamole-and-nginx-as-reverse-proxy-with-docker/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment