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.

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