ttrss-container/docker-compose.yml

104 lines
1.9 KiB
YAML
Raw Normal View History

2019-11-15 12:51:55 +00:00
version: '3'
# set database password in .env
# please don't use quote (') or (") symbols in variables
services:
db:
image: postgres:12-alpine
restart: unless-stopped
2021-01-31 12:05:50 +00:00
env_file:
- .env
2019-11-15 12:51:55 +00:00
volumes:
- db:/var/lib/postgresql/data
app:
2019-11-15 14:42:50 +00:00
build:
context:
./app
2019-11-15 12:51:55 +00:00
restart: unless-stopped
environment:
- DB_NAME=${POSTGRES_USER}
- DB_USER=${POSTGRES_USER}
- DB_PASS=${POSTGRES_PASSWORD}
- SELF_URL_PATH=${SELF_URL_PATH}
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
environment:
- DB_NAME=${POSTGRES_USER}
- DB_USER=${POSTGRES_USER}
- DB_PASS=${POSTGRES_PASSWORD}
volumes:
- backups:/backups
- app:/var/www/html
depends_on:
- db
command: /dcron.sh -f
updater:
build:
context:
./app
restart: unless-stopped
environment:
- DB_NAME=${POSTGRES_USER}
- DB_USER=${POSTGRES_USER}
- DB_PASS=${POSTGRES_PASSWORD}
- SELF_URL_PATH=${SELF_URL_PATH}
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: /updater.sh
# web:
# build: ./web
# restart: unless-stopped
# ports:
# - ${HTTP_PORT}:2015
# volumes:
# - app:/var/www/html:ro
# depends_on:
# - app
2019-11-15 12:51:55 +00:00
2019-11-16 06:31:32 +00:00
# web-ssl:
# build: ./web-ssl
# restart: unless-stopped
# environment:
# - CADDYPATH=/certs
# - HTTP_HOST=${HTTP_HOST}
# ports:
2019-11-16 06:44:32 +00:00
# - 80:80
# - 443:443
2019-11-16 06:31:32 +00:00
# volumes:
# - app:/var/www/html:ro
# - certs:/certs
# depends_on:
# - app
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:
2019-11-15 18:20:27 +00:00
app:
2019-11-16 06:31:32 +00:00
certs:
backups: