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.

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