ttrss/docker-compose.yml

56 lines
1.1 KiB
YAML
Raw Normal View History

2023-10-22 07:11:24 +00:00
# simplified compose for local development
2023-10-22 06:40:08 +00:00
version: '3'
services:
db:
image: postgres:15-alpine
restart: unless-stopped
env_file:
- .env
environment:
- POSTGRES_USER=${TTRSS_DB_USER}
- POSTGRES_PASSWORD=${TTRSS_DB_PASS}
- POSTGRES_DB=${TTRSS_DB_NAME}
app:
image: cthulhoo/ttrss-fpm-pgsql-static:latest
2023-10-22 06:55:07 +00:00
environment:
SKIP_RSYNC_ON_STARTUP: true
2023-10-22 06:40:08 +00:00
build:
dockerfile: .docker/app/Dockerfile
context: .
restart: unless-stopped
env_file:
- .env
volumes:
2023-10-22 06:55:07 +00:00
- .:/var/www/html/tt-rss
2023-10-22 06:40:08 +00:00
depends_on:
- db
2023-10-22 07:11:24 +00:00
updater:
image: cthulhoo/ttrss-fpm-pgsql-static:latest
restart: unless-stopped
env_file:
- .env
volumes:
- .:/var/www/html/tt-rss
2023-10-22 07:11:24 +00:00
depends_on:
- app
command: /opt/tt-rss/updater.sh
2023-10-22 06:40:08 +00:00
web-nginx:
image: cthulhoo/ttrss-web-nginx:latest
build:
dockerfile: .docker/web-nginx/Dockerfile
context: .
restart: unless-stopped
env_file:
- .env
ports:
- ${HTTP_PORT}:80
volumes:
2023-10-22 06:55:07 +00:00
- .:/var/www/html/tt-rss:ro
2023-10-22 06:40:08 +00:00
depends_on:
- app