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.

56 lines
1.1 KiB

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