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.

43 lines
936 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. ALLOW_SIGNUP: "False"
  15. ports:
  16. - 8000:8000
  17. webpack:
  18. image: node:8
  19. volumes:
  20. - .:/src
  21. - node_modules:/src/app/server/static/node_modules
  22. command: ["/src/tools/dev-webpack.sh"]
  23. environment:
  24. WEBPACK_HOST: "0.0.0.0"
  25. WEBPACK_PORT: "8080"
  26. WEBPACK_POLL_MILLIS: "1000"
  27. ports:
  28. - 8080:8080
  29. postgres:
  30. image: postgres:9.6
  31. environment:
  32. POSTGRES_USER: "doccano"
  33. POSTGRES_PASSWORD: "doccano"
  34. POSTGRES_DB: "doccano"
  35. ports:
  36. - 5432:5432
  37. volumes:
  38. node_modules:
  39. venv: