docker-compose.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. version: '2'
  2. services:
  3. guacamole-db:
  4. image: postgres:${POSTGRES_VER}
  5. container_name: guacamole-db
  6. hostname: guacamole-db
  7. restart: on-failure:3
  8. environment:
  9. POSTGRES_DATABASE: guacamole
  10. POSTGRES_USER: guacamole
  11. POSTGRES_PASSWORD: guacamole
  12. volumes:
  13. - ./data/postgres:/var/lib/postgresql/data
  14. # *.sql in here will run when no db exists yet
  15. - ./data/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
  16. networks:
  17. - default
  18. guacd:
  19. image: guacamole/guacd:${GUACAMOLE_VER}
  20. container_name: guacd
  21. hostname: guacd
  22. restart: on-failure:3
  23. depends_on:
  24. - guacamole-db
  25. networks:
  26. - default
  27. - terminalserver_default
  28. # - terminalserver2_default
  29. guacamole:
  30. image: guacamole/guacamole:${GUACAMOLE_VER}
  31. container_name: guacamole
  32. hostname: guacamole
  33. restart: on-failure:3
  34. ports:
  35. - ${PORTMAPPING}
  36. expose:
  37. - 8080
  38. depends_on:
  39. - guacd
  40. - guacamole-db
  41. environment:
  42. GUACD_HOSTNAME: guacd
  43. POSTGRES_HOSTNAME: guacamole-db
  44. POSTGRES_DATABASE: guacamole
  45. POSTGRES_USER: guacamole
  46. POSTGRES_PASSWORD: guacamole
  47. VIRTUAL_HOST: ${HOSTNAME}
  48. LETSENCRYPT_HOST: ${HOSTNAME}
  49. # LETSENCRYPT_EMAIL: webmaster@${HOSTNAME}
  50. REMOTE_IP_VALVE_ENABLED: true
  51. networks:
  52. - default
  53. - reverse-proxy_default
  54. networks:
  55. reverse-proxy_default:
  56. external: true
  57. terminalserver_default:
  58. external: true
  59. # terminalserver2_default:
  60. # external: true