mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-22 20:28:00 -05:00
* Possiblity to autoinstall in Docker Compose #fix https://github.com/FreshRSS/FreshRSS/issues/3349 It is simply calling our existing CLI: do-install.php and create-user.php https://github.com/FreshRSS/FreshRSS/tree/master/cli FreshRSS will typically be ready a few seconds before the database, so introduce a tolerance when the database is not available / up (yet) by trying a few times to connect. Also useful to avoid service interruption when DB service is restarted. Example: ```yml freshrss-app: image: freshrss/freshrss container_name: freshrss-app hostname: freshrss-app restart: unless-stopped ports: - "8080:80" depends_on: - freshrss-db volumes: - data:/var/www/FreshRSS/data - extensions:/var/www/FreshRSS/extensions environment: CRON_MIN: '*/20' FRESHRSS_ENV: development FRESHRSS_INSTALL: |- --api_enabled --base_url https://rss.example.net --db-base freshrss --db-host freshrss-db --db-password freshrss --db-type pgsql --db-user freshrss --default_user admin --language en FRESHRSS_USER: |- --api_password freshrss --email user@example.net --language en --password freshrss --user admin TZ: Europe/Paris ``` * Minor type f in find * shellcheck
36 lines
717 B
YAML
36 lines
717 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: freshrss
|
|
POSTGRES_PASSWORD: freshrss
|
|
POSTGRES_DB: freshrss
|
|
|
|
freshrss-app:
|
|
image: freshrss/freshrss:latest
|
|
container_name: freshrss-app
|
|
hostname: freshrss-app
|
|
restart: unless-stopped
|
|
ports:
|
|
- "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:
|