Guacamole docker compose
Create the ${HOME}/docker-stack/guacamole/docker-compose.yml file:
# networks # create a network 'guacnetwork_compose' in mode 'bridged' networks: guacnetwork_compose: driver: bridge # services services: # guacd guacd: container_name: guacd_compose image: guacamole/guacd networks: - guacnetwork_compose restart: always volumes: - ./drive:/drive:rw - ./record:/record:rw # postgres postgres: container_name: postgres_guacamole_compose environment: PGDATA: /var/lib/postgresql/data/guacamole POSTGRES_DB: guacamole_db POSTGRES_PASSWORD: 'ChooseYourOwnPasswordHere1234' POSTGRES_USER: guacamole_user image: postgres:15.2-alpine networks: - guacnetwork_compose restart: always volumes: - ./init:/docker-entrypoint-initdb.d:z - ./data:/var/lib/postgresql/data:Z # guacamole guacamole: container_name: guacamole_compose group_add: - "1000" depends_on: - guacd - postgres environment: GUACD_HOSTNAME: guacd POSTGRES_DATABASE: guacamole_db POSTGRES_HOSTNAME: postgres POSTGRES_PASSWORD: 'ChooseYourOwnPasswordHere1234' POSTGRES_USER: guacamole_user RECORDING_SEARCH_PATH: /record image: guacamole/guacamole networks: - guacnetwork_compose volumes: - ./record:/record:rw ports: ## enable next line if not using nginx # - 8086:8080/tcp # Guacamole is on :8080/guacamole, not /. ## enable next line when using nginx - 8080/tcp restart: always