mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-20 11:17:56 -05:00
* Add a docker compose example. Using postgresql and with traefik specific labels. * Added docker-compose specific documentation. * Move docker-compose section at the end of the README.md. * Correct docker-compose.yml file and add a corresponding note in the doc. * Typo in doc.
39 lines
854 B
YAML
39 lines
854 B
YAML
version: '2.3'
|
|
|
|
services:
|
|
postgresql:
|
|
image: postgres:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- '/path/to/pgsql-data:/var/lib/postgresql/data'
|
|
environment:
|
|
- POSTGRES_USER=freshrss
|
|
- POSTGRES_PASSWORD=password
|
|
- POSTGRES_DB=freshrss
|
|
|
|
freshrss:
|
|
image: freshrss/freshrss:latest
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- postgresql
|
|
networks:
|
|
- web
|
|
- default
|
|
volumes:
|
|
- '/your/local/directory/data:/var/www/FreshRSS/data'
|
|
labels:
|
|
- "traefik.backend=freshrss"
|
|
- "traefik.docker.network=web"
|
|
- "traefik.frontend.rule=Host:rss.example.com"
|
|
- "traefik.enable=true"
|
|
- "traefik.default.protocol=http"
|
|
- "traefik.frontend.entryPoints=http,https"
|
|
- "traefik.port=80"
|
|
environment:
|
|
- CRON_MIN=*/20
|
|
|
|
networks:
|
|
web:
|
|
external: true
|
|
|