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.

58 lines
1.2 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.7.0
  25. command: ["/src/frontend/dev-nuxt.sh"]
  26. environment:
  27. API_URL: "http://backend:8000"
  28. volumes:
  29. - .:/src
  30. - node_modules:/src/frontend/node_modules
  31. ports:
  32. - 3000:3000
  33. depends_on:
  34. - backend
  35. networks:
  36. - network-frontend
  37. postgres:
  38. image: postgres:13.1-alpine
  39. volumes:
  40. - postgres_data:/var/lib/postgresql/data/
  41. environment:
  42. POSTGRES_USER: "doccano"
  43. POSTGRES_PASSWORD: "doccano"
  44. POSTGRES_DB: "doccano"
  45. networks:
  46. - network-backend
  47. volumes:
  48. postgres_data:
  49. node_modules:
  50. venv:
  51. networks:
  52. network-backend:
  53. network-frontend: