docker-compose.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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=http://${HTTP_HOST}:${HTTP_PORT}/tt-rss
  30. volumes:
  31. - app:/var/www/html
  32. depends_on:
  33. - db
  34. web:
  35. build: ./web
  36. restart: unless-stopped
  37. ports:
  38. - ${HTTP_PORT}:2015
  39. volumes:
  40. - app:/var/www/html:ro
  41. depends_on:
  42. - app
  43. # web-ssl:
  44. # build: ./web-ssl
  45. # restart: unless-stopped
  46. # environment:
  47. # - CADDYPATH=/certs
  48. # - HTTP_HOST=${HTTP_HOST}
  49. # ports:
  50. # - 80:80
  51. # - 443:443
  52. # volumes:
  53. # - app:/var/www/html:ro
  54. # - certs:/certs
  55. # depends_on:
  56. # - app
  57. volumes:
  58. db:
  59. app:
  60. certs: