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.

60 lines
1.2 KiB

  1. version: "3.7"
  2. services:
  3. backend:
  4. build:
  5. context: .
  6. dockerfile: app/Dockerfile.dev
  7. volumes:
  8. - .:/src
  9. - venv:/root/.local/share
  10. environment:
  11. ADMIN_USERNAME: "admin"
  12. ADMIN_PASSWORD: "password"
  13. ADMIN_EMAIL: "admin@example.com"
  14. DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
  15. ALLOW_SIGNUP: "False"
  16. DEBUG: "True"
  17. ports:
  18. - 8000:8000
  19. depends_on:
  20. - postgres
  21. networks:
  22. - network-backend
  23. - network-frontend
  24. frontend:
  25. image: node:13.7.0
  26. command: ["/src/tools/dev-nuxt.sh"]
  27. working_dir: /src/frontend
  28. environment:
  29. API_URL: "http://backend:8000"
  30. volumes:
  31. - .:/src
  32. - node_modules:/src/frontend/node_modules
  33. ports:
  34. - 3000:3000
  35. depends_on:
  36. - backend
  37. networks:
  38. - network-frontend
  39. postgres:
  40. image: postgres:13.1-alpine
  41. volumes:
  42. - postgres_data:/var/lib/postgresql/data/
  43. environment:
  44. POSTGRES_USER: "doccano"
  45. POSTGRES_PASSWORD: "doccano"
  46. POSTGRES_DB: "doccano"
  47. networks:
  48. - network-backend
  49. volumes:
  50. postgres_data:
  51. node_modules:
  52. venv:
  53. networks:
  54. network-backend:
  55. network-frontend: