docker-compose.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. build:
  15. context:
  16. ./app
  17. args:
  18. - OWNER_UID=${OWNER_UID}
  19. - OWNER_GID=${OWNER_GID}
  20. restart: unless-stopped
  21. environment:
  22. - DB_TYPE=pgsql
  23. - DB_HOST=db
  24. - DB_NAME=${POSTGRES_USER}
  25. - DB_USER=${POSTGRES_USER}
  26. - DB_PASS=${POSTGRES_PASSWORD}
  27. - OWNER_UID=${OWNER_UID}
  28. - OWNER_GID=${OWNER_GID}
  29. - SELF_URL_PATH=${SELF_URL_PATH}
  30. volumes:
  31. - app:/var/www/html
  32. depends_on:
  33. - db
  34. updater:
  35. build:
  36. context:
  37. ./app
  38. args:
  39. - OWNER_UID=${OWNER_UID}
  40. - OWNER_GID=${OWNER_GID}
  41. restart: unless-stopped
  42. volumes:
  43. - app:/var/www/html
  44. depends_on:
  45. - app
  46. user: app
  47. command: "php /var/www/html/tt-rss/update_daemon2.php"
  48. web:
  49. build: ./web
  50. restart: unless-stopped
  51. ports:
  52. - ${HTTP_PORT}:2015
  53. volumes:
  54. - app:/var/www/html:ro
  55. depends_on:
  56. - app
  57. # web-ssl:
  58. # build: ./web-ssl
  59. # restart: unless-stopped
  60. # environment:
  61. # - CADDYPATH=/certs
  62. # - HTTP_HOST=${HTTP_HOST}
  63. # ports:
  64. # - 80:80
  65. # - 443:443
  66. # volumes:
  67. # - app:/var/www/html:ro
  68. # - certs:/certs
  69. # depends_on:
  70. # - app
  71. volumes:
  72. db:
  73. app:
  74. certs: