Created
March 4, 2018 17:42
-
-
Save HenryQW/d71a5b4af2a1c81c77642375368d6f44 to your computer and use it in GitHub Desktop.
docker-compose for postgres+ttrss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For https://sspai.com/post/42787 | |
version: "3" | |
services: | |
postgres: | |
container_name: postgres | |
image: sameersbn/postgresql:latest | |
ports: | |
- 5432:5432 | |
network_mode: "bridge" | |
environment: | |
- PG_PASSWORD=[数据库密码] | |
- DB_EXTENSION=pg_trgm | |
volumes: | |
- /docker/postgres/data:/var/lib/postgresql # 确保 postgres 数据保存在宿主上 | |
restart: always | |
ttrss: | |
image: wangqiru/ttrss | |
container_name: ttrss | |
links: | |
- postgres:db | |
network_mode: "bridge" | |
ports: | |
- 81:80 | |
environment: | |
- SELF_URL_PATH=[你的域名] | |
- DB_PORT=5432 | |
- DB_NAME=ttrss | |
- DB_USER=postgres | |
- DB_PASS=[数据库密码] | |
stdin_open: true | |
tty: true | |
restart: always | |
networks: | |
default: | |
external: | |
name: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment