docker-compose.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. version: '3'
  2. # set database password in .env
  3. # please don't use quote (') or (") symbols in variables
  4. services:
  5. db:
  6. image: postgres:12-alpine
  7. restart: unless-stopped
  8. volumes:
  9. - db:/var/lib/postgresql/data
  10. environment:
  11. - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
  12. - POSTGRES_USER=${POSTGRES_USER}
  13. app:
  14. image: cthulhoo/ttrss-fpm-pgsql-static
  15. restart: unless-stopped
  16. environment:
  17. - DB_TYPE=pgsql
  18. - DB_HOST=db
  19. - DB_NAME=${POSTGRES_USER}
  20. - DB_USER=${POSTGRES_USER}
  21. - DB_PASS=${POSTGRES_PASSWORD}
  22. - OWNER_UID=${OWNER_UID}
  23. - OWNER_GID=${OWNER_GID}
  24. - SELF_URL_PATH=${SELF_URL_PATH}
  25. volumes:
  26. - app:/var/www/html
  27. depends_on:
  28. - db
  29. updater:
  30. image: cthulhoo/ttrss-fpm-pgsql-static
  31. restart: unless-stopped
  32. environment:
  33. - DB_TYPE=pgsql
  34. - DB_HOST=db
  35. - DB_NAME=${POSTGRES_USER}
  36. - DB_USER=${POSTGRES_USER}
  37. - DB_PASS=${POSTGRES_PASSWORD}
  38. - OWNER_UID=${OWNER_UID}
  39. - OWNER_GID=${OWNER_GID}
  40. - SELF_URL_PATH=${SELF_URL_PATH}
  41. volumes:
  42. - app:/var/www/html
  43. depends_on:
  44. - app
  45. command: /updater.sh
  46. web:
  47. image: cthulhoo/ttrss-web
  48. restart: unless-stopped
  49. ports:
  50. - ${HTTP_PORT}:2015
  51. volumes:
  52. - app:/var/www/html:ro
  53. depends_on:
  54. - app
  55. # web-ssl:
  56. # image: cthulhoo/ttrss-web-ssl
  57. # restart: unless-stopped
  58. # environment:
  59. # - CADDYPATH=/certs
  60. # - HTTP_HOST=${HTTP_HOST}
  61. # ports:
  62. # - 80:80
  63. # - 443:443
  64. # volumes:
  65. # - app:/var/www/html:ro
  66. # - certs:/certs
  67. # depends_on:
  68. # - app
  69. # web-nginx:
  70. # image: cthulhoo/ttrss-web-nginx
  71. # restart: unless-stopped
  72. # ports:
  73. # - ${HTTP_PORT}:80
  74. # volumes:
  75. # - app:/var/www/html:ro
  76. # depends_on:
  77. # - app
  78. volumes:
  79. db:
  80. app:
  81. certs: