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.

68 lines
1.3 KiB

  1. version: "2.4"
  2. services:
  3. odoo:
  4. extends:
  5. file: common.yaml
  6. service: odoo
  7. env_file:
  8. - .docker/odoo.env
  9. - .docker/db-access.env
  10. environment:
  11. DOODBA_ENVIRONMENT: "${DOODBA_ENVIRONMENT-test}"
  12. # To install demo data export DOODBA_WITHOUT_DEMO=false
  13. WITHOUT_DEMO: "${DOODBA_WITHOUT_DEMO-all}"
  14. SMTP_PORT: "1025"
  15. SMTP_SERVER: smtplocal
  16. restart: unless-stopped
  17. depends_on:
  18. - db
  19. - smtp
  20. networks:
  21. default:
  22. globalwhitelist_shared:
  23. labels:
  24. doodba.domain.main: ""
  25. command:
  26. - odoo
  27. - --workers=2
  28. - --max-cron-threads=1
  29. db:
  30. extends:
  31. file: common.yaml
  32. service: db
  33. env_file:
  34. - .docker/db-creation.env
  35. restart: unless-stopped
  36. smtp:
  37. extends:
  38. file: common.yaml
  39. service: smtpfake
  40. restart: unless-stopped
  41. networks:
  42. default:
  43. aliases:
  44. - smtplocal
  45. labels:
  46. doodba.domain.main: ""
  47. volumes:
  48. - "smtpconf:/etc/mailhog:ro,z"
  49. entrypoint: [sh, -c]
  50. command:
  51. - test -r /etc/mailhog/auth && export MH_AUTH_FILE=/etc/mailhog/auth; exec MailHog
  52. networks:
  53. default:
  54. internal: ${DOODBA_NETWORK_INTERNAL-true}
  55. driver_opts:
  56. encrypted: 1
  57. globalwhitelist_shared:
  58. external: true
  59. volumes:
  60. filestore:
  61. db:
  62. smtpconf: