docker-compose.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. version: "3"
  2. services:
  3. service.rss:
  4. image: wangqiru/ttrss:latest
  5. container_name: ttrss
  6. ports:
  7. - 181:80
  8. environment:
  9. - SELF_URL_PATH=https://rss.zhixinghe1.top # please change to your own domain
  10. - DB_PASS=ttrss # use the same password defined in `database.postgres`
  11. - PUID=1000
  12. - PGID=1000
  13. volumes:
  14. - feed-icons:/var/www/feed-icons/
  15. networks:
  16. - public_access
  17. - service_only
  18. - database_only
  19. stdin_open: true
  20. tty: true
  21. restart: always
  22. service.mercury: # set Mercury Parser API endpoint to `service.mercury:3000` on TTRSS plugin setting page
  23. image: wangqiru/mercury-parser-api:latest
  24. container_name: mercury
  25. networks:
  26. - public_access
  27. - service_only
  28. restart: always
  29. service.opencc: # set OpenCC API endpoint to `service.opencc:3000` on TTRSS plugin setting page
  30. image: wangqiru/opencc-api-server:latest
  31. container_name: opencc
  32. environment:
  33. - NODE_ENV=production
  34. networks:
  35. - service_only
  36. restart: always
  37. database.postgres:
  38. image: postgres:13-alpine
  39. container_name: postgres
  40. environment:
  41. - POSTGRES_PASSWORD=ttrss # feel free to change the password
  42. volumes:
  43. - /home/zkpk/ttrss/postgres/data/:/var/lib/postgresql/data # persist postgres data to ~/postgres/data/ on the host
  44. networks:
  45. - database_only
  46. restart: always
  47. # utility.watchtower:
  48. # container_name: watchtower
  49. # image: containrrr/watchtower:latest
  50. # volumes:
  51. # - /var/run/docker.sock:/var/run/docker.sock
  52. # environment:
  53. # - WATCHTOWER_CLEANUP=true
  54. # - WATCHTOWER_POLL_INTERVAL=86400
  55. # restart: always
  56. volumes:
  57. feed-icons:
  58. networks:
  59. public_access: # Provide the access for ttrss UI
  60. service_only: # Provide the communication network between services only
  61. internal: true
  62. database_only: # Provide the communication between ttrss and database only
  63. internal: true