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: ./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. GOOGLE_TRACKING_ID: ""
  25. volumes:
  26. - www:/app/dist
  27. nginx:
  28. build: ./nginx
  29. volumes:
  30. - www:/var/www/html:ro
  31. - static_volume:/static
  32. ports:
  33. - 80:80
  34. depends_on:
  35. - backend
  36. networks:
  37. - network-frontend
  38. postgres:
  39. image: postgres:13.1-alpine
  40. volumes:
  41. - postgres_data:/var/lib/postgresql/data/
  42. environment:
  43. POSTGRES_USER: "doccano"
  44. POSTGRES_PASSWORD: "doccano"
  45. POSTGRES_DB: "doccano"
  46. networks:
  47. - network-backend
  48. volumes:
  49. postgres_data:
  50. static_volume:
  51. www:
  52. networks:
  53. network-backend:
  54. network-frontend: