boschkundendienst / guacamole-docker-compose

Guacamole with docker-compose using PostgreSQL, nginx with SSL (self-signed)
GNU General Public License v3.0
983 stars 410 forks source link

Question - if I use portainer stack after running initial scripts will it work? #33

Closed fate8383 closed 2 years ago

fate8383 commented 2 years ago

I kind of like using portainer and helps me since the server is at remote location so instead of docker compose up, will this work via portiner stack?

boschkundendienst commented 2 years ago

Theoretically it could work with portainer since it works with docker. It might be that you have to to do what prepare.sh does by hand (initializing the database) and maybe you could/should remove nginx. But you better look at the official documentation how to setup guacamole in docker here.

cryptedx commented 1 year ago

I kind of like using portainer and helps me since the server is at remote location so instead of docker compose up, will this work via portiner stack?

Hi,

I am also at this point. Have you managed to get it working?

cryptedx commented 1 year ago

I have got it working. Take a look at my short summary how to do it:

Notice: I am not using nginx. I have my own running which I am going to use.

Login to your docker / Portainer server via ssh

git clone https://github.com/boschkundendienst/guacamole-docker-compose.git
cd guacamole-docker-compose
./prepare.sh

Now with Portainer create the stack with the content of the docker-compose.yml from the Github repo. Change the password! After that stop all containers from the stack.

Now find the right path to the guacamole stack. For that go into the container details of one of the three containers. Scroll down to labels section and search for com.docker.compose.project.working_dir. There it is!

Change 76 to your folder number!

sudo cp init/initdb.sql /data/compose/76/init/
cd /data/compose/76/
ls -la init # check if initdb.sql has been copied
sudo rm -r data/ drive/ record/ # cleanup for a fresh new start

Start all containers from the stack

Now you can login at http://{YOURIP}/guacamole/ with guacadmin/guacadmin. Change password after login!