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.

42 lines
907 B

  1. version: "3"
  2. services:
  3. django:
  4. image: python:3.6
  5. volumes:
  6. - .:/src
  7. - venv:/src/venv
  8. command: ["/src/tools/dev-django.sh", "0.0.0.0:8000"]
  9. environment:
  10. ADMIN_USERNAME: "admin"
  11. ADMIN_PASSWORD: "password"
  12. ADMIN_EMAIL: "admin@example.com"
  13. DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
  14. ports:
  15. - 8000:8000
  16. webpack:
  17. image: node:8
  18. volumes:
  19. - .:/src
  20. - node_modules:/src/app/server/static/node_modules
  21. command: ["/src/tools/dev-webpack.sh"]
  22. environment:
  23. WEBPACK_HOST: "0.0.0.0"
  24. WEBPACK_PORT: "8080"
  25. WEBPACK_POLL_MILLIS: "1000"
  26. ports:
  27. - 8080:8080
  28. postgres:
  29. image: postgres:9.6
  30. environment:
  31. POSTGRES_USER: "doccano"
  32. POSTGRES_PASSWORD: "doccano"
  33. POSTGRES_DB: "doccano"
  34. ports:
  35. - 5432:5432
  36. volumes:
  37. node_modules:
  38. venv: