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.

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