42 lines
992 B
YAML
42 lines
992 B
YAML
services:
|
|
guacd:
|
|
image: guacamole/guacd:latest
|
|
container_name: guacd
|
|
restart: unless-stopped
|
|
networks: [guac-net]
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: guac-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: guacamole_db
|
|
POSTGRES_USER: guacamole_user
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
volumes:
|
|
- guac-pgdata:/var/lib/postgresql/data
|
|
- ./initdb.sql:/docker-entrypoint-initdb.d/initdb.sql:ro
|
|
networks: [guac-net]
|
|
|
|
guacamole:
|
|
image: guacamole/guacamole:latest
|
|
container_name: guacamole
|
|
restart: unless-stopped
|
|
depends_on: [guacd, postgres]
|
|
environment:
|
|
GUACD_HOSTNAME: guacd
|
|
POSTGRESQL_HOSTNAME: postgres
|
|
POSTGRESQL_DATABASE: guacamole_db
|
|
POSTGRESQL_USERNAME: guacamole_user
|
|
POSTGRESQL_PASSWORD: ${POSTGRES_PASSWORD}
|
|
ports:
|
|
- '8085:8080'
|
|
networks: [guac-net]
|
|
|
|
volumes:
|
|
guac-pgdata:
|
|
|
|
networks:
|
|
guac-net:
|
|
driver: bridge
|