Files
FreshRSS/Docker/docker-compose.yml
Upils 66ff16294a Correct docker-compose.yml file and add a corresponding note in the doc. (#1906)
* 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.
2018-05-29 22:28:30 +02:00

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