postgresql.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # This needs at least compose 1.6.0
  2. version: '2'
  3. services:
  4. postgresdata:
  5. image: postgres:9.5
  6. command: /bin/true
  7. postgres:
  8. image: postgres:9.5
  9. volumes_from:
  10. - postgresdata
  11. environment:
  12. POSTGRES_PASSWORD: myhuginnpassword
  13. POSTGRES_USER: huginn
  14. huginn_web:
  15. image: huginn/huginn-single-process
  16. restart: always
  17. extends:
  18. file: environment.yml
  19. service: huginn_base
  20. environment:
  21. DATABASE_ADAPTER: postgresql
  22. POSTGRES_PORT_5432_TCP_ADDR: postgres
  23. POSTGRES_PORT_5432_TCP_PORT: 5432
  24. ports:
  25. - 3000:3000
  26. links:
  27. - postgres
  28. huginn_threaded:
  29. image: huginn/huginn-single-process
  30. restart: always
  31. extends:
  32. file: environment.yml
  33. service: huginn_base
  34. environment:
  35. DATABASE_ADAPTER: postgresql
  36. POSTGRES_PORT_5432_TCP_ADDR: postgres
  37. POSTGRES_PORT_5432_TCP_PORT: 5432
  38. links:
  39. - postgres
  40. command: /scripts/init bin/threaded.rb
  41. # huginn_schedule:
  42. # image: huginn/huginn-single-process
  43. # extends:
  44. # file: environment.yml
  45. # service: huginn_base
  46. # environment:
  47. # DATABASE_ADAPTER: postgresql
  48. # POSTGRES_PORT_5432_TCP_ADDR: postgres
  49. # POSTGRES_PORT_5432_TCP_PORT: 5432
  50. # links:
  51. # - postgres
  52. # command: /scripts/init bin/schedule.rb
  53. # huginn_twitter_stream:
  54. # image: huginn/huginn-single-process
  55. # extends:
  56. # file: environment.yml
  57. # service: huginn_base
  58. # environment:
  59. # DATABASE_ADAPTER: postgresql
  60. # POSTGRES_PORT_5432_TCP_ADDR: postgres
  61. # POSTGRES_PORT_5432_TCP_PORT: 5432
  62. # links:
  63. # - postgres
  64. # command: /scripts/init bin/twitter_stream.rb
  65. # huginn_dj1:
  66. # image: huginn/huginn-single-process
  67. # extends:
  68. # file: environment.yml
  69. # service: huginn_base
  70. # environment:
  71. # DATABASE_ADAPTER: postgresql
  72. # POSTGRES_PORT_5432_TCP_ADDR: postgres
  73. # POSTGRES_PORT_5432_TCP_PORT: 5432
  74. # links:
  75. # - postgres
  76. # command: /scripts/init script/delayed_job run