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.

56 lines
1.1 KiB

  1. version: "3.7"
  2. services:
  3. backend:
  4. image: python:3.6
  5. volumes:
  6. - .:/src
  7. - venv:/src/venv
  8. command: ["/src/app/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. DEBUG: "True"
  16. ports:
  17. - 8000:8000
  18. depends_on:
  19. - postgres
  20. networks:
  21. - network-backend
  22. - network-frontend
  23. frontend:
  24. image: node:13.2.0
  25. command: ["/src/frontend/dev-nuxt.sh"]
  26. volumes:
  27. - .:/src
  28. - node_modules:/src/frontend/node_modules
  29. ports:
  30. - 3000:3000
  31. depends_on:
  32. - backend
  33. networks:
  34. - network-frontend
  35. postgres:
  36. image: postgres:12.0-alpine
  37. volumes:
  38. - postgres_data:/var/lib/postgresql/data/
  39. environment:
  40. POSTGRES_USER: "doccano"
  41. POSTGRES_PASSWORD: "doccano"
  42. POSTGRES_DB: "doccano"
  43. networks:
  44. - network-backend
  45. volumes:
  46. postgres_data:
  47. node_modules:
  48. venv:
  49. networks:
  50. network-backend:
  51. network-frontend: