Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2018
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1.  
  2. # -------------------------------------------------
  3. # Box1 (working) in /opt/domain1/docker-compose.yml
  4. # ------------------------------------------------
  5. version: '3'
  6.  
  7. services:
  8. fix-postgresql:
  9. image: bitnami/postgresql:latest
  10. user: root
  11. command: chown -R 1001:1001 /bitnami
  12. volumes:
  13. - ./postgresql_data:/bitnami
  14. postgresql:
  15. image: bitnami/postgresql:latest
  16. volumes:
  17. - ./postgresql_data:/bitnami
  18. depends_on:
  19. - fix-postgresql
  20. odoo:
  21. image: 'bitnami/odoo:latest'
  22. expose:
  23. - "8069"
  24. - "8071"
  25. environment:
  26. ODOO_EMAIL: "chris.heney@gmail.com"
  27. ODOO_PASSWORD: "poiuPOIU87"
  28. VIRTUAL_HOST: "erp.domain1.com"
  29. VIRTUAL_PORT: "8069"
  30. VIRTUAL_PROTO: "http"
  31. LETSENCRYPT_HOST: "erp.domain1.com"
  32. volumes:
  33. - ./odoo_data:/bitnami
  34. depends_on:
  35. - postgresql
  36. volumes:
  37. postgresql_data:
  38. driver: local
  39. odoo_data:
  40. driver: local
  41. networks:
  42. default:
  43. external:
  44. name: nginx-proxy
  45.  
  46.  
  47. # -------------------------------------------------
  48. # Box2 (failing) in /opt/domain2/docker-compose.yml
  49. # -------------------------------------------------
  50. # ERROR
  51. # odoo_d2_1 | Error executing 'postInstallation': User bn_odoo already exists
  52. # erpdomain2com_odoo_d2_1 exited with code 1
  53. #
  54.  
  55. version: '3'
  56.  
  57. services:
  58. fix-postgresql:
  59. image: bitnami/postgresql:latest
  60. user: root
  61. command: chown -R 1001:1001 /bitnami
  62. volumes:
  63. - ./postgresql_tripled_data:/bitnami
  64. postgresql_d2:
  65. image: bitnami/postgresql:latest
  66. volumes:
  67. - ./postgresql_tripled_data:/bitnami
  68. depends_on:
  69. - fix-postgresql
  70. odoo_tripled:
  71. image: 'bitnami/odoo:latest'
  72. expose:
  73. - "8069"
  74. - "8071"
  75. environment:
  76. ODOO_EMAIL: "user@gmbail.com"
  77. ODOO_PASSWORD: "asdf"
  78. VIRTUAL_HOST: "erp.domain2.com"
  79. VIRTUAL_PORT: "8069"
  80. VIRTUAL_PROTO: "http"
  81. LETSENCRYPT_HOST: "erp.domain2.com"
  82. volumes:
  83. - ./odoo_data:/bitnami
  84. depends_on:
  85. - postgresql_d2
  86. volumes:
  87. postgresql_d2_data:
  88. driver: local
  89. odoo_d2_data:
  90. driver: local
  91. networks:
  92. default:
  93. external:
  94. name: nginx-proxy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement