mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-24 21:27:56 -05:00
* Add .env file for docker-compose (fix #3755) Adding a .env has the advantage that the configuration can be stored in a separate file and it'll be possible to just get the newest docker-compose.yml file. * Update documentation for the .env file * Update Docker/README.md Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
36 lines
790 B
YAML
36 lines
790 B
YAML
version: "3"
|
|
|
|
services:
|
|
freshrss-db:
|
|
image: postgres:12-alpine
|
|
container_name: freshrss-db
|
|
hostname: freshrss-db
|
|
restart: unless-stopped
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-freshrss}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-freshrss}
|
|
POSTGRES_DB: ${POSTGRES_DB:-freshrss}
|
|
|
|
freshrss-app:
|
|
image: freshrss/freshrss:latest
|
|
container_name: freshrss-app
|
|
hostname: freshrss-app
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${EXPOSED_PORT:-8080}:80"
|
|
depends_on:
|
|
- freshrss-db
|
|
volumes:
|
|
- data:/var/www/FreshRSS/data
|
|
- extensions:/var/www/FreshRSS/extensions
|
|
environment:
|
|
CRON_MIN: '*/20'
|
|
TZ: Europe/Paris
|
|
|
|
volumes:
|
|
db:
|
|
data:
|
|
extensions:
|