Files
compose-template/Docker/fresh-rss/docker-compose.yml
2022-05-19 09:56:01 +08:00

71 lines
1.9 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: "2.4"
services:
freshrss:
image: freshrss/freshrss:edge
container_name: freshrss
restart: unless-stopped
logging:
options:
max-size: 10m
volumes:
- ./data/fresh-rss/data:/var/www/FreshRSS/data
- ./data/fresh-rss/extensions:/var/www/FreshRSS/extensions
ports:
# If you want to open a port 8080 on the local machine:
- "8080:80"
environment:
TZ: Asia/Shanghai
CRON_MIN: '2,32'
FRESHRSS_ENV: development
# Optional advanced parameter controlling the internal Apache listening port
LISTEN: 0.0.0.0:80
# Optional auto-install parameters (the Web interface install is recommended instead):
# ⚠️ Parameters below are only used at the very first run (so far).
# So if changes are made (or in .env file), first delete the service and volumes.
# All the --db-* parameters can be omitted if using built-in SQLite database.
FRESHRSS_INSTALL: |-
--api_enabled
--base_url http://127.0.0.1:8080
--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 password
--email 1058178245@qq.com
--language en
--password password
--user admin
networks:
nginx:
aliases:
- freshrss
freshrss-db:
image: postgres:14
container_name: freshrss-db
hostname: freshrss-db
restart: unless-stopped
logging:
options:
max-size: 10m
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: freshrss
POSTGRES_USER: freshrss
POSTGRES_PASSWORD: freshrss
networks:
nginx:
aliases:
- freshrss-db
networks:
nginx:
external: true