docker-compose.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. version: '3.2'
  2. volumes:
  3. postgres:
  4. services:
  5. web:
  6. build:
  7. context: ./containers
  8. dockerfile: web
  9. depends_on:
  10. - redis
  11. - postgresql
  12. image: pagure-web:latest
  13. ports:
  14. - "5000:5000"
  15. volumes:
  16. - ../lcl/repos:/repos:z
  17. - ../lcl/attachments:/attachments:z
  18. - ..:/code:z
  19. environment:
  20. - GL_USER=root
  21. - PYTHONPATH=/code
  22. - PAGURE_CONFIG=/code/dev/openshift.cfg
  23. worker:
  24. build:
  25. context: ./containers
  26. dockerfile: worker
  27. depends_on:
  28. - redis
  29. - postgresql
  30. image: pagure-worker:latest
  31. volumes:
  32. - ../lcl/repos:/repos:z
  33. - ../lcl/attachments:/attachments:ro
  34. - ..:/code:z
  35. environment:
  36. - PYTHONPATH=/code
  37. - PAGURE_CONFIG=/code/dev/openshift.cfg
  38. logcom:
  39. build:
  40. context: ./containers
  41. dockerfile: logcom
  42. depends_on:
  43. - redis
  44. - postgresql
  45. image: pagure-logcom:latest
  46. volumes:
  47. - ../lcl/repos:/repos:z
  48. - ../lcl/attachments:/attachments:ro
  49. - ..:/code:z
  50. environment:
  51. - PYTHONPATH=.
  52. - PAGURE_CONFIG=/code/dev/openshift.cfg
  53. ev:
  54. build:
  55. context: ./containers
  56. dockerfile: ev
  57. depends_on:
  58. - redis
  59. image: pagure-ev:latest
  60. ports:
  61. - "8080:8080"
  62. volumes:
  63. - ..:/code:z
  64. environment:
  65. - PYTHONPATH=.
  66. - PAGURE_CONFIG=/code/dev/openshift.cfg
  67. redis:
  68. image: redis
  69. postgresql:
  70. image: postgres
  71. environment:
  72. - POSTGRES_USER=pagure
  73. - POSTGRES_PASSWORD=pagure
  74. - POSTGRES_DB=pagure
  75. - PGDATA=/var/lib/postgresql/data/pgdata
  76. volumes:
  77. - postgres:/var/lib/postgresql/data/pgdata:z