You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
3.4 KiB

  1. version: "2.4"
  2. services:
  3. odoo_proxy:
  4. image: tecnativa/whitelist
  5. depends_on:
  6. - odoo
  7. networks: &public
  8. default:
  9. public:
  10. ports:
  11. - "127.0.0.1:14899:6899"
  12. - "127.0.0.1:14069:8069"
  13. environment:
  14. PORT: "6899 8069"
  15. TARGET: odoo
  16. odoo:
  17. extends:
  18. file: common.yaml
  19. service: odoo
  20. build:
  21. args:
  22. # To aggregate in development, use `setup-devel.yaml`
  23. AGGREGATE: "false"
  24. # Export these variables to own files created by odoo in your filesystem
  25. UID: "${UID:-1000}"
  26. GID: "${GID:-1000}"
  27. # No need for this in development
  28. PIP_INSTALL_ODOO: "false"
  29. CLEAN: "false"
  30. COMPILE: "false"
  31. environment:
  32. DOODBA_ENVIRONMENT: "${DOODBA_ENVIRONMENT-devel}"
  33. LIST_DB: "true"
  34. DEBUGPY_ENABLE: "${DOODBA_DEBUGPY_ENABLE:-0}"
  35. PGDATABASE: &dbname devel
  36. PYTHONDONTWRITEBYTECODE: 1
  37. PYTHONOPTIMIZE: ""
  38. PYTHONPATH: /opt/odoo/custom/src/odoo
  39. SMTP_PORT: "1025"
  40. WDB_WEB_PORT: "14984"
  41. # To avoid installing demo data export DOODBA_WITHOUT_DEMO=all
  42. WITHOUT_DEMO: "${DOODBA_WITHOUT_DEMO-false}"
  43. volumes:
  44. - ./odoo/custom:/opt/odoo/custom:ro,z
  45. - ./odoo/auto:/opt/odoo/auto:rw,z
  46. depends_on:
  47. - cdnjs_cloudflare_proxy
  48. - db
  49. - fonts_googleapis_proxy
  50. - fonts_gstatic_proxy
  51. - google_proxy
  52. - gravatar_proxy
  53. - smtp
  54. - wdb
  55. command:
  56. - odoo
  57. - --limit-memory-soft=0
  58. - --limit-time-real-cron=9999999
  59. - --limit-time-real=9999999
  60. - --workers=0
  61. - --dev=reload,qweb,werkzeug,xml
  62. db:
  63. extends:
  64. file: common.yaml
  65. service: db
  66. environment:
  67. POSTGRES_DB: *dbname
  68. POSTGRES_PASSWORD: odoopassword
  69. pgweb:
  70. image: sosedoff/pgweb
  71. networks: *public
  72. ports:
  73. - "127.0.0.1:14081:8081"
  74. environment:
  75. DATABASE_URL: postgres://odoo:odoopassword@db:5432/devel?sslmode=disable
  76. depends_on:
  77. - db
  78. smtp:
  79. extends:
  80. file: common.yaml
  81. service: smtpfake
  82. networks: *public
  83. ports:
  84. - "127.0.0.1:14025:8025"
  85. wdb:
  86. image: kozea/wdb
  87. networks: *public
  88. ports:
  89. - "127.0.0.1:14984:1984"
  90. # HACK https://github.com/Kozea/wdb/issues/136
  91. init: true
  92. # Whitelist outgoing traffic for tests, reports, etc.
  93. cdnjs_cloudflare_proxy:
  94. image: tecnativa/whitelist
  95. networks:
  96. default:
  97. aliases:
  98. - cdnjs.cloudflare.com
  99. public:
  100. environment:
  101. TARGET: cdnjs.cloudflare.com
  102. PRE_RESOLVE: 1
  103. fonts_googleapis_proxy:
  104. image: tecnativa/whitelist
  105. networks:
  106. default:
  107. aliases:
  108. - fonts.googleapis.com
  109. public:
  110. environment:
  111. TARGET: fonts.googleapis.com
  112. PRE_RESOLVE: 1
  113. fonts_gstatic_proxy:
  114. image: tecnativa/whitelist
  115. networks:
  116. default:
  117. aliases:
  118. - fonts.gstatic.com
  119. public:
  120. environment:
  121. TARGET: fonts.gstatic.com
  122. PRE_RESOLVE: 1
  123. google_proxy:
  124. image: tecnativa/whitelist
  125. networks:
  126. default:
  127. aliases:
  128. - www.google.com
  129. public:
  130. environment:
  131. TARGET: www.google.com
  132. PRE_RESOLVE: 1
  133. gravatar_proxy:
  134. image: tecnativa/whitelist
  135. networks:
  136. default:
  137. aliases:
  138. - www.gravatar.com
  139. public:
  140. environment:
  141. TARGET: www.gravatar.com
  142. PRE_RESOLVE: 1
  143. networks:
  144. default:
  145. internal: true
  146. public:
  147. volumes:
  148. filestore:
  149. db: