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.

89 lines
1.9 KiB

  1. version: "3.7"
  2. services:
  3. backend:
  4. build:
  5. context: .
  6. dockerfile: backend/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. CELERY_BROKER_URL: "amqp://doccano:doccano@rabbitmq"
  15. DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
  16. ALLOW_SIGNUP: "False"
  17. DEBUG: "True"
  18. ports:
  19. - 8000:8000
  20. depends_on:
  21. - postgres
  22. networks:
  23. - network-backend
  24. - network-frontend
  25. celery:
  26. build:
  27. context: .
  28. dockerfile: backend/Dockerfile.dev
  29. volumes:
  30. - .:/src
  31. - venv:/root/.local/share
  32. entrypoint: ["/src/tools/dev-celery.sh"]
  33. environment:
  34. PYTHONUNBUFFERED: "1"
  35. CELERY_BROKER_URL: "amqp://doccano:doccano@rabbitmq"
  36. DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
  37. depends_on:
  38. - postgres
  39. - rabbitmq
  40. networks:
  41. - network-backend
  42. rabbitmq:
  43. image: rabbitmq:3.8
  44. environment:
  45. RABBITMQ_DEFAULT_USER: "doccano"
  46. RABBITMQ_DEFAULT_PASS: "doccano"
  47. ports:
  48. - 5672:5672
  49. networks:
  50. - network-backend
  51. frontend:
  52. image: node:13.7.0
  53. command: ["/src/tools/dev-nuxt.sh"]
  54. working_dir: /src/frontend
  55. environment:
  56. API_URL: "http://backend:8000"
  57. volumes:
  58. - .:/src
  59. - node_modules:/src/frontend/node_modules
  60. ports:
  61. - 3000:3000
  62. depends_on:
  63. - backend
  64. networks:
  65. - network-frontend
  66. postgres:
  67. image: postgres:13.1-alpine
  68. volumes:
  69. - postgres_data:/var/lib/postgresql/data/
  70. environment:
  71. POSTGRES_USER: "doccano"
  72. POSTGRES_PASSWORD: "doccano"
  73. POSTGRES_DB: "doccano"
  74. networks:
  75. - network-backend
  76. volumes:
  77. postgres_data:
  78. node_modules:
  79. venv:
  80. networks:
  81. network-backend:
  82. network-frontend: