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.

62 lines
1.2 KiB

  1. version: "3.7"
  2. services:
  3. backend:
  4. build:
  5. context: .
  6. dockerfile: app/Dockerfile.prod
  7. # command: ["/app/tools/run.sh"]
  8. volumes:
  9. - static_volume:/app/staticfiles
  10. environment:
  11. ADMIN_USERNAME: "admin"
  12. ADMIN_PASSWORD: "password"
  13. ADMIN_EMAIL: "admin@example.com"
  14. DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
  15. ALLOW_SIGNUP: "False"
  16. DEBUG: "False"
  17. depends_on:
  18. - postgres
  19. networks:
  20. - network-backend
  21. - network-frontend
  22. frontend:
  23. build: ./frontend
  24. environment:
  25. API_URL: "http://backend:8000"
  26. GOOGLE_TRACKING_ID: ""
  27. volumes:
  28. - www:/app/dist
  29. nginx:
  30. build: ./nginx
  31. volumes:
  32. - www:/var/www/html:ro
  33. - static_volume:/static
  34. ports:
  35. - 80:80
  36. depends_on:
  37. - backend
  38. networks:
  39. - network-frontend
  40. postgres:
  41. image: postgres:13.1-alpine
  42. volumes:
  43. - postgres_data:/var/lib/postgresql/data/
  44. environment:
  45. POSTGRES_USER: "doccano"
  46. POSTGRES_PASSWORD: "doccano"
  47. POSTGRES_DB: "doccano"
  48. networks:
  49. - network-backend
  50. volumes:
  51. postgres_data:
  52. static_volume:
  53. www:
  54. networks:
  55. network-backend:
  56. network-frontend: