ttrss-container/docker-compose.yml

70 lines
1.2 KiB
YAML
Raw Normal View History

2019-11-15 12:51:55 +00:00
version: '3'
services:
db:
image: postgres:12-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=${TTRSS_DB_USER}
- POSTGRES_PASSWORD=${TTRSS_DB_PASS}
- POSTGRES_DB=${TTRSS_DB_NAME}
2019-11-15 12:51:55 +00:00
volumes:
- db:/var/lib/postgresql/data
app:
build:
2019-11-15 14:42:50 +00:00
context:
./app
2019-11-15 12:51:55 +00:00
restart: unless-stopped
env_file:
- .env
2019-11-15 12:51:55 +00:00
volumes:
2019-11-15 18:20:27 +00:00
- app:/var/www/html
2021-01-31 12:05:50 +00:00
- ./config.d:/opt/tt-rss/config.d:ro
2019-11-15 12:51:55 +00:00
depends_on:
- db
backups:
build:
context:
./app
restart: unless-stopped
2021-02-05 15:08:00 +00:00
env_file:
- .env
volumes:
- backups:/backups
- app:/var/www/html
depends_on:
- db
command: /opt/tt-rss/dcron.sh -f
updater:
build:
context:
./app
restart: unless-stopped
env_file:
- .env
volumes:
- app:/var/www/html
2021-01-31 12:05:50 +00:00
- ./config.d:/opt/tt-rss/config.d:ro
depends_on:
- app
command: /opt/tt-rss/updater.sh
web-nginx:
build: ./web-nginx
restart: unless-stopped
ports:
- ${HTTP_PORT}:80
volumes:
- app:/var/www/html:ro
depends_on:
- app
2019-11-15 12:51:55 +00:00
volumes:
db:
app:
2019-11-16 06:31:32 +00:00
certs:
backups: