docker-compose.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. version: '3.7'
  2. services:
  3. wekandb-dev:
  4. image: mongo:4.0.11
  5. container_name: wekan-dev-db
  6. restart: unless-stopped
  7. command: mongod --smallfiles --oplogSize 128
  8. networks:
  9. - wekan-dev-tier
  10. expose:
  11. - 27017
  12. volumes:
  13. - wekan-dev-db:/data/db
  14. - wekan-dev-db-dump:/dump
  15. wekan-dev:
  16. container_name: wekan-dev-app
  17. restart: always
  18. networks:
  19. - wekan-dev-tier
  20. build:
  21. context: .
  22. dockerfile: Dockerfile
  23. ports:
  24. - 3000:3000
  25. - 9229:9229
  26. environment:
  27. - MONGO_URL=mongodb://wekandb-dev:27017/wekan
  28. - ROOT_URL=http://localhost:3000
  29. #- MAIL_URL=smtp://user:pass@mailserver.example.com:25/
  30. - MAIL_URL=smtp://<mail_url>:25/?ignoreTLS=true&tls={rejectUnauthorized:false}
  31. - MAIL_FROM=Wekan Notifications <noreply.wekan@mydomain.com>
  32. - WITH_API=true
  33. - RICHER_CARD_COMMENT_EDITOR=true
  34. - BROWSER_POLICY_ENABLED=true
  35. depends_on:
  36. - wekandb-dev
  37. volumes:
  38. - ..:/app
  39. command:
  40. sleep infinity
  41. volumes:
  42. wekan-dev-db:
  43. driver: local
  44. wekan-dev-db-dump:
  45. driver: local
  46. networks:
  47. wekan-dev-tier:
  48. driver: bridge