Hello
This is a docker compose file i created to remember how to set it up
My question is what do in need to do to setup 2FA with an authentication app
like google auth. I tried following the docs but it flew over my head
docker-compose.yamlversion: "2.1"services: guacamole: image:
guacamole/guacamole container_name: some-guacamole environment:
- MYSQL_DATABASE=guacamole_db - MYSQL_USER=guacamole_user
- MYSQL_PASSWORD=some_password - GUACD_HOSTNAME=some-guacd
- GUACD_PORT=4822 - MYSQL_HOSTNAME=some-mysql -
MYSQL_PORT=3306 - TZ=Africa/Johannesburg ports: -
8080:8080 restart: unless-stopped guacd: image: guacamole/guacd
container_name: some-guacd restart: unless-stopped mysql:
image: mysql container_name: some-mysql environment: -
MYSQL_DATABASE=guacamole_db - MYSQL_USER=guacamole_user -
MYSQL_PASSWORD=some_password - MYSQL_ROOT_PASSWORD=example
volumes: - /home/YOURLOCATION/config/guacamole:/var/lib/mysql
restart: unless-stopped#To bring up the containerssudo docker-compose
up -d#Setting up the database inside the containersudo docker run --rm
guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql >
initdb.sqlsudo docker cp initdb.sql some-mysql:/guac_db.sql#Go into
the containersudo docker exec -it some-mysql bashcat guac_db.sql |
mysql -u root -p guacamole_db#Now the database is set up and you can
log into the web interface at http://YOURIP:8080/guacamole/#The
default user and password is guacadmin