Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- init-guac-db:
- container_name: init-guac-db
- image: guacamole/guacamole:latest
- command: ["/bin/sh", "-c", "test -e /init/initdb.sql && echo 'init file already exists' || /opt/guacamole/bin/initdb.sh --postgres > /init/initdb.sql" ]
- volumes:
- - dbinit:/init
- postgres:
- container_name: postgres
- image: postgres:latest
- restart: always
- volumes:
- - dbinit:/docker-entrypoint-initdb.d
- - dbdata:/var/lib/postgresql/data
- environment:
- POSTGRES_USER: guacuser
- POSTGRES_PASSWORD: mypassword
- depends_on:
- - init-guac-db
- network_mode: bridge
- guacd:
- container_name: guacd
- image: guacamole/guacd:latest
- restart: always
- network_mode: bridge
- guacamole:
- container_name: guacamole
- image: guacamole/guacamole:latest
- restart: always
- environment:
- GUACD_HOSTNAME: guacd
- POSTGRES_HOSTNAME: postgres
- POSTGRES_DATABASE: guacuser
- POSTGRES_USER: guacuser
- POSTGRES_PASSWORD: mypassword
- ports:
- - 8585:8080
- depends_on:
- - postgres
- - guacd
- labels:
- traefik.enable: "true"
- traefik.frontend.redirect.entryPoint: "https"
- traefik.frontend.rule: "Host:guacamole.mydomain.com; guac.mydomain.com; AddPrefix: /guacamole"
- traefik.port: "8080"
- network_mode: bridge
- volumes:
- dbinit:
- dbdata:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement