version: "3" services: service.rss: image: wangqiru/ttrss:latest container_name: ttrss ports: - 181:80 environment: - SELF_URL_PATH=http://localhost:181/ # please change to your own domain - DB_PASS=ttrss # use the same password defined in `database.postgres` volumes: - feed-icons:/var/www/feed-icons/ networks: - public_access - service_only - database_only stdin_open: true tty: true restart: always
service.mercury: # set Mercury Parser API endpoint to `service.mercury:3000` on TTRSS plugin setting page image: wangqiru/mercury-parser-api:latest container_name: mercury networks: - service_only restart: always
database.postgres: image: postgres:13-alpine container_name: postgres environment: - POSTGRES_PASSWORD=ttrss # feel free to change the password volumes: - ~/postgres/data/:/var/lib/postgresql/data # persist postgres data to ~/postgres/data/ on the host networks: - database_only restart: always
networks: public_access: # Provide the access for ttrss UI service_only: # Provide the communication network between services only database_only: # Provide the communication between ttrss and database only internal: true volumes: feed-icons: