You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ttrss-docker-compose/docker-compose.yml

106 lines
1.9 KiB
YAML

5 years ago
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
env_file:
- .env
5 years ago
volumes:
- db:/var/lib/postgresql/data
app:
5 years ago
build:
context:
./app
5 years ago
restart: unless-stopped
env_file:
- .env
5 years ago
environment:
- DB_NAME=${POSTGRES_USER}
- DB_USER=${POSTGRES_USER}
- DB_PASS=${POSTGRES_PASSWORD}
volumes:
- app:/var/www/html
- ./config.d:/opt/tt-rss/config.d:ro
5 years ago
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
env_file:
- .env
environment:
- DB_NAME=${POSTGRES_USER}
- DB_USER=${POSTGRES_USER}
- DB_PASS=${POSTGRES_PASSWORD}
volumes:
- app:/var/www/html
- ./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
5 years ago
# web-ssl:
# build: ./web-ssl
# restart: unless-stopped
# environment:
# - CADDYPATH=/certs
# - HTTP_HOST=${HTTP_HOST}
# ports:
# - 80:80
# - 443:443
# 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
5 years ago
volumes:
db:
app:
certs:
backups: