|
| 1 | +version: '2.0' |
| 2 | + |
| 3 | +services: |
| 4 | + |
| 5 | + guacd: |
| 6 | + image: guacamole/guacd |
| 7 | + container_name: guacamole-guacd |
| 8 | + restart: always |
| 9 | + volumes: |
| 10 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/guacamole/guacd/drive:/drive:rw |
| 11 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/guacamole/guacd/record:/record:rw |
| 12 | + #networks: |
| 13 | + # - proxy |
| 14 | + |
| 15 | + postgres: |
| 16 | + image: postgres:15.2-alpine |
| 17 | + container_name: guacamole-db |
| 18 | + restart: always |
| 19 | + environment: |
| 20 | + - PGDATA=/var/lib/postgresql/data/guacamole |
| 21 | + - POSTGRES_DB=guacamole_db |
| 22 | + - POSTGRES_PASSWORD=ChooseYourOwnPasswordHere1234 |
| 23 | + - POSTGRES_USER=guacamole_user |
| 24 | + volumes: |
| 25 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/guacamole/psql/init:/docker-entrypoint-initdb.d:z |
| 26 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/guacamole/psql/data:/var/lib/postgresql/data:Z |
| 27 | + #networks: |
| 28 | + # - proxy |
| 29 | + |
| 30 | + # guacamole |
| 31 | + guacamole: |
| 32 | + image: guacamole/guacamole |
| 33 | + container_name: guacamole-ui |
| 34 | + restart: always |
| 35 | + depends_on: |
| 36 | + - guacd |
| 37 | + - postgres |
| 38 | + environment: |
| 39 | + - GUACD_HOSTNAME=guacd |
| 40 | + - POSTGRES_DATABASE=guacamole_db |
| 41 | + - POSTGRES_HOSTNAME=postgres |
| 42 | + - POSTGRES_PASSWORD=ChooseYourOwnPasswordHere1234 |
| 43 | + - POSTGRES_USER=guacamole_user |
| 44 | + links: |
| 45 | + - guacd |
| 46 | + ports: |
| 47 | + # Guacamole is on :8080/guacamole, not /. |
| 48 | + # Default login is guacadmin:guacadmin |
| 49 | + - 8080:8080/tcp |
| 50 | + expose: |
| 51 | + - 8080 |
| 52 | + #networks: |
| 53 | + # - proxy |
| 54 | + #labels: |
| 55 | + # - traefik.enable=true |
| 56 | + # - traefik.docker.network=proxy |
| 57 | + # - traefik.http.routers.guacamole.rule=Host(`guacamole.example.com`) |
| 58 | + # - traefik.http.services.guacamole.loadbalancer.server.port=8080 |
| 59 | + # # Optional part for traefik middlewares |
| 60 | + # - traefik.http.routers.guacamole.middlewares=local-ipwhitelist@file,authelia@docker |
| 61 | + |
| 62 | +#networks: |
| 63 | +# proxy: |
| 64 | +# external: true |
0 commit comments