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.

61 lines
1.2 KiB

  1. version: "3.7"
  2. services:
  3. backend:
  4. build: ./app
  5. command: ["/app/tools/run.sh"]
  6. volumes:
  7. - static_volume:/app/staticfiles
  8. environment:
  9. ADMIN_USERNAME: "admin"
  10. ADMIN_PASSWORD: "password"
  11. ADMIN_EMAIL: "admin@example.com"
  12. DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
  13. ALLOW_SIGNUP: "False"
  14. DEBUG: "False"
  15. depends_on:
  16. - postgres
  17. networks:
  18. - network-backend
  19. - network-frontend
  20. frontend:
  21. build: ./frontend
  22. environment:
  23. API_URL: "http://backend:8000"
  24. volumes:
  25. - www:/app/dist
  26. environment:
  27. GOOGLE_TRACKING_ID: ""
  28. nginx:
  29. build: ./nginx
  30. volumes:
  31. - www:/var/www/html:ro
  32. - static_volume:/static
  33. ports:
  34. - 80:80
  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. static_volume:
  52. www:
  53. networks:
  54. network-backend:
  55. network-frontend: