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: -public_access -service_only restart:always
service.opencc:# set OpenCC API endpoint to `service.opencc:3000` on TTRSS plugin setting page image:wangqiru/opencc-api-server:latest container_name:opencc environment: -NODE_ENV=production networks: -service_only restart:always
database.postgres: image:postgres:13-alpine container_name:postgres environment: -POSTGRES_PASSWORD=strong_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 internal:true database_only:# Provide the communication between ttrss and database only internal:true
然后就可以运行了。
1
docker-compose up -d
之后想要修改docker-compose.yml时,先docker-compose down然后修改,改好后重新docker-compose up -d即可。注意以上命令都要在ttrss文件夹内执行。