docker-compose.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. version: "2"
  2. services:
  3. guacd:
  4. image: guacamole/guacd
  5. container_name: gw-guacd
  6. hostname: guacd
  7. restart: always
  8. networks:
  9. - guacnet
  10. volumes:
  11. - ./data:/data
  12. - ./conf:/conf:ro
  13. expose:
  14. - 4822
  15. guacamole:
  16. image: guacamole/guacamole
  17. container_name: gw-guacamole
  18. hostname: guacamole
  19. restart: always
  20. networks:
  21. - guacnet
  22. depends_on:
  23. - guacamole-db
  24. volumes:
  25. - ./guac-home:/data
  26. - ./conf:/conf:ro
  27. ports:
  28. - "80:8080"
  29. environment:
  30. - GUACD_HOSTNAME=guacd
  31. - GUACD_PORT=4822
  32. - GUACAMOLE_HOME=/data
  33. - MYSQL_HOSTNAME=guacamole-db
  34. - MYSQL_DATABASE=guacamole_db
  35. - MYSQL_USER=guacamole
  36. - MYSQL_PASSWORD=${MYSQL_PASSWORD}
  37. - VIRTUAL_PORT=8080
  38. guacamole-db:
  39. image: mysql
  40. container_name: gw-db
  41. hostname: guacdb
  42. restart: always
  43. networks:
  44. - guacnet
  45. command: mysqld --user=root
  46. volumes:
  47. - ./mysql-conf:/docker-entrypoint-initdb.d
  48. - ./db:/var/lib/mysql:rw
  49. environment:
  50. - MYSQL_DATABASE=guacamole_db
  51. - MYSQL_USER=guacamole
  52. - MYSQL_PASSWORD=${MYSQL_PASSWORD}
  53. - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
  54. networks:
  55. guacnet:
  56. driver: bridge