docker-compose.yml 984 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version: '3.7'
  2. services:
  3. wekandb-dev:
  4. image: mongo:4.0.12
  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: .devcontainer/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. - WITH_API=true
  30. - RICHER_CARD_COMMENT_EDITOR=true
  31. - BROWSER_POLICY_ENABLED=true
  32. depends_on:
  33. - wekandb-dev
  34. volumes:
  35. - ..:/app:delegated
  36. command:
  37. sleep infinity
  38. volumes:
  39. wekan-dev-db:
  40. driver: local
  41. wekan-dev-db-dump:
  42. driver: local
  43. networks:
  44. wekan-dev-tier:
  45. driver: bridge