Installazione di Guacamole con Docker: Difference between revisions
Jump to navigation
Jump to search
Created page with "* Creare docker-compose.yml <pre> cat > docker-compose.yml <<EOFile version: '3.9' # services services: # guacd guacd: container_name: guacamole_backend image: g..." |
mNo edit summary |
||
| Line 43: | Line 43: | ||
POSTGRES_USER: '${POSTGRES_USER}' | POSTGRES_USER: '${POSTGRES_USER}' | ||
POSTGRESQL_AUTO_CREATE_ACCOUNTS: true | POSTGRESQL_AUTO_CREATE_ACCOUNTS: true | ||
WEBAPP_CONTEXT=ROOT # to access as / | |||
WEBAPP_CONTEXT=remote # to access as /remote | |||
image: guacamole/guacamole:latest | image: guacamole/guacamole:latest | ||
ports: | ports: | ||
| Line 79: | Line 82: | ||
=Riferimenti= | =Riferimenti= | ||
*[https://theko2fi.medium.com/apache-guacamole-manual-installation-with-docker-compose-222cef1894e3 Apache Guacamole: manual installation with docker-compose | by Kenneth KOFFI | Feb, 2023 | Medium] | *[https://theko2fi.medium.com/apache-guacamole-manual-installation-with-docker-compose-222cef1894e3 Apache Guacamole: manual installation with docker-compose | by Kenneth KOFFI | Feb, 2023 | Medium] | ||
*[https://dae.me/blog/2572/apache-guacamole-how-to-change-the-default-url-path-guacamole-to-something-else/ Apache Guacamole: how to change the default URL path (/guacamole) to something else | Dae’s blog] | |||
Revision as of 10:10, 12 July 2023
- Creare docker-compose.yml
cat > docker-compose.yml <<EOFile
version: '3.9'
# services
services:
# guacd
guacd:
container_name: guacamole_backend
image: guacamole/guacd:latest
restart: always
volumes:
- ./drive:/drive:rw
- ./record:/record:rw
# postgres
postgres:
container_name: guacamole_database
environment:
PGDATA: /var/lib/postgresql/data/guacamole
POSTGRES_DB: guacamole_db
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
POSTGRES_USER: '${POSTGRES_USER}'
image: postgres:13.4
restart: always
volumes:
- ./init:/docker-entrypoint-initdb.d:ro
- ./data:/var/lib/postgresql/data:rw
# guacamole
guacamole:
container_name: guacamole_frontend
depends_on:
- guacd
- postgres
environment:
GUACD_HOSTNAME: guacd
POSTGRES_DATABASE: guacamole_db
POSTGRES_HOSTNAME: postgres
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRESQL_AUTO_CREATE_ACCOUNTS: true
WEBAPP_CONTEXT=ROOT # to access as /
WEBAPP_CONTEXT=remote # to access as /remote
image: guacamole/guacamole:latest
ports:
- 8888:8080/tcp
links:
- guacd
restart: always
volumes:
- ./drive:/drive:rw
EOFile
- Creare il file contente a password di postgres:
cat > .env <<EOFile POSTGRES_PASSWORD='PleasePutAStrongPasswordHere' POSTGRES_USER='guacamole_user' EOFile
- Creare il file di inizializzazione del DB
mkdir init docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgres > init/initdb.sql
- Lanciare
docker compose up
- Loggarsi su http://myhostname:8888/guacamole con
guacadmin guacadmin
- Per cambiare la password, andare su Opzioni/Preferenze