73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
services:
|
|
guacd:
|
|
image: ${GUACD_IMAGE}
|
|
container_name: guacd
|
|
restart: unless-stopped
|
|
labels:
|
|
prune.protect: "true"
|
|
extra_hosts:
|
|
- "host.docker.internal:10.0.4.1"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "nc -z 127.0.0.1 4822 || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 5s
|
|
networks:
|
|
- guacamole
|
|
|
|
postgres:
|
|
image: ${GUACAMOLE_POSTGRES_IMAGE}
|
|
container_name: guacamole-postgres
|
|
restart: unless-stopped
|
|
labels:
|
|
prune.protect: "true"
|
|
environment:
|
|
POSTGRES_DB: ${GUACAMOLE_DB_NAME}
|
|
POSTGRES_USER: ${GUACAMOLE_DB_USER}
|
|
POSTGRES_PASSWORD: ${GUACAMOLE_DB_PASSWORD}
|
|
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
|
|
volumes:
|
|
- ${GUACAMOLE_DATA_PATH}:/var/lib/postgresql/data:Z
|
|
- ./initdb:/docker-entrypoint-initdb.d:ro,Z
|
|
networks:
|
|
- guacamole
|
|
|
|
guacamole:
|
|
image: ${GUACAMOLE_IMAGE}
|
|
container_name: guacamole
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- guacd
|
|
- postgres
|
|
environment:
|
|
TZ: ${TZ}
|
|
WEBAPP_CONTEXT: ROOT
|
|
GUACD_HOSTNAME: guacd
|
|
POSTGRESQL_HOSTNAME: postgres
|
|
POSTGRESQL_DATABASE: ${GUACAMOLE_DB_NAME}
|
|
POSTGRESQL_USERNAME: ${GUACAMOLE_DB_USER}
|
|
POSTGRESQL_PASSWORD: ${GUACAMOLE_DB_PASSWORD}
|
|
extra_hosts:
|
|
- "host.docker.internal:10.0.4.1"
|
|
networks:
|
|
- guacamole
|
|
- proxy
|
|
labels:
|
|
prune.protect: "true"
|
|
homepage.group: "Infraestructura"
|
|
homepage.name: "Remote Desktop"
|
|
homepage.icon: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/apache-guacamole.svg"
|
|
homepage.description: "XFCE del servidor via navegador"
|
|
homepage.href: "https://${GUACAMOLE_DOMAIN}/"
|
|
homepage.siteMonitor: "http://guacamole:8080/"
|
|
homepage.weight: "360"
|
|
|
|
networks:
|
|
guacamole:
|
|
driver: bridge
|
|
labels:
|
|
prune.protect: "true"
|
|
proxy:
|
|
external: true
|