forked from HenryQW/Awesome-TTRSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.pg12.yml
54 lines (52 loc) · 1.88 KB
/
docker-compose.pg12.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# please note this is a legacy compose file archived to support postgres 12, further changes will NOT be applied here.
version: "3"
services:
database.postgres:
image: postgres:12-alpine
container_name: postgres
environment:
- POSTGRES_PASSWORD=ttrss # please change the password
# volumes:
# - ~/postgres/data/:/var/lib/postgresql/data # persist postgres data to ~/postgres/data/ on the host
restart: always
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_HOST=database.postgres
- DB_PORT=5432
- DB_NAME=ttrss
- DB_USER=postgres
- DB_PASS=ttrss # please change the password
- ENABLE_PLUGINS=auth_internal,fever # auth_internal is required. Plugins enabled here will be enabled for all users as system plugins
- FEED_LOG_QUIET=true
stdin_open: true
tty: true
restart: always
command: sh -c 'sh /wait-for.sh $$DB_HOST:$$DB_PORT -- php /configure-db.php && exec s6-svscan /etc/s6/'
# 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
# expose:
# - 3000
# 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
# expose:
# - 3000
# restart: always
# utility.watchtower:
# container_name: watchtower
# image: containrrr/watchtower:latest
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# environment:
# - WATCHTOWER_CLEANUP=true
# - WATCHTOWER_POLL_INTERVAL=86400
# restart: always