docker-compose.yml 1.4 KB

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