version:"3" services: service.rss: image:wangqiru/ttrss:latest container_name:ttrss-web ports: -'10042:80' environment: # please change to your own domain -SELF_URL_PATH=https://ttrss.example.domain/ # use the same password defined in `database.postgres` -DB_PASS=emmettwoo # run as root -PUID=1000 -PGID=1000 volumes: -feed-icons:/var/www/feed-icons/ networks: -public_access -service_only -database_only # stdin_open: true # tty: true restart:unless-stopped
# set Mercury Parser API endpoint to `service.mercury:3000` on TTRSS plugin setting page service.mercury: image:wangqiru/mercury-parser-api:latest container_name:ttrss-mercury networks: -public_access -service_only restart:unless-stopped
# set OpenCC API endpoint to `service.opencc:3000` on TTRSS plugin setting page service.opencc: image:wangqiru/opencc-api-server:latest container_name:ttrss-opencc environment: -NODE_ENV=production networks: -service_only restart:unless-stopped
database.postgres: image:postgres:13-alpine container_name:ttrss-postgres environment: # feel free to change the password -POSTGRES_PASSWORD=emmettwoo volumes: # persist postgres data to ~/postgres/data/ on the host -/home/emmettwoo/data/ttrss/postgresql:/var/lib/postgresql/data networks: -database_only restart:unless-stopped
networks: # Provide the access for ttrss UI public_access: # Provide the communication network between services only service_only: internal:true # Provide the communication between ttrss and database only database_only: internal:true