docker-compose.yml 840B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This needs at least compose 1.6.0
  2. version: '2'
  3. services:
  4. mysqldata:
  5. image: mysql:5.7
  6. command: /bin/true
  7. mysql:
  8. image: mysql:5.7
  9. volumes_from:
  10. - mysqldata
  11. ports:
  12. - "3306:3306"
  13. environment:
  14. MYSQL_ROOT_PASSWORD: myrootpassword
  15. MYSQL_DATABASE: huginn
  16. MYSQL_USER: huginn
  17. MYSQL_PASSWORD: myhuginnpassword
  18. huginn:
  19. build:
  20. context: ../../
  21. dockerfile: docker/multi-process/Dockerfile
  22. restart: always
  23. environment:
  24. HUGINN_DATABASE_NAME: huginn
  25. HUGINN_DATABASE_USERNAME: root
  26. HUGINN_DATABASE_PASSWORD: myrootpassword
  27. INTENTIONALLY_SLEEP: 10
  28. #DATABASE_INITIAL_CONNECT_MAX_RETRIES: 5
  29. PORT: 3000
  30. MYSQL_PORT_3306_TCP_ADDR: mysql
  31. MYSQL_PORT_3306_TCP_PORT: 3306
  32. ports:
  33. - 3000:3000
  34. links:
  35. - mysql