# Setting up Apache Guacamole using Docker

Visit: [https://github.com/boschkundendienst/guacamole-docker-compose](https://github.com/boschkundendienst/guacamole-docker-compose)

Follow instructions which in short are:

1. git clone "https://github.com/boschkundendienst/guacamole-docker-compose.git"
2. cd guacamole-docker-compose
3. Edit docker-compose.yml to suite your environment
4. ./prepare.sh
5. docker compose up -d

If you want to add TOTP then do the following:

1. In your docker-compose.yml file add 
    - Environment variable: GUACAMOLE\_HOME=/config/guacamole
    - Mount ./guacamole:/config/guacamole
2. Create in your docker directory 
    - create the folllowing folders guacamole/extensions/
    - wget [https://downloads.apache.org/guacamole/1.6.0/binary/guacamole-auth-totp-1.6.0.tar.gz](https://downloads.apache.org/guacamole/1.6.0/binary/guacamole-auth-totp-1.6.0.tar.gz) (or matching version to your guacamole install) and extract the guacamole-auth-totp-1.6.0.jar to the above extensions folder

After adding the above extension, restart the container.