version: "3.7" services: guacamole-postgresql: # database for guacamole deploy: placement: constraints: [node.labels.com.sigyl.git-stack-data == yes] replicas: 1 restart_policy: condition: any image: ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/guacamole-postgresql:latest environment: POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: guacamole_db volumes: - guacamole-postgresql-data:/var/lib/postgresql/data networks: - appnet # The backend guacamole server. guacd: deploy: placement: constraints: [node.labels.com.sigyl.git-stack == yes] replicas: 1 restart_policy: condition: any image: guacamole/guacd:latest networks: - appnet guacamole: deploy: placement: constraints: [node.labels.com.sigyl.git-stack == yes] replicas: 1 restart_policy: condition: any image: guacamole/guacamole:1.2.0@sha256:6eb0b854e8e145df8f9220b92e51d52e9ff18c4262de20d56ccc62a4dad835b9 environment: - POSTGRES_HOSTNAME=guacamole-postgresql - POSTGRES_PORT=5432 - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DATABASE=guacamole_db - GUACD_HOSTNAME=guacd networks: - appnet - externalnet volumes: guacamole-postgresql-data: networks: appnet: driver: overlay #external: true externalnet: driver: overlay external: true