-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
91 lines (87 loc) · 3.27 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3"
volumes:
data:
extensions:
db:
services:
freshrss:
image: freshrss/freshrss:latest
# Optional build section if you want to build the image locally:
build:
# Pick #latest (stable release) or #edge (rolling release) or a specific release like #1.21.0
context: https://github.com/FreshRSS/FreshRSS.git#latest
dockerfile: Docker/Dockerfile-Alpine
container_name: freshrss
hostname: freshrss
restart: unless-stopped
logging:
options:
max-size: 10m
volumes:
# Recommended volume for FreshRSS persistent data such as configuration and SQLite databases
- ./volumes/data:/var/www/FreshRSS/data
# Optional volume for storing third-party extensions
- ./volumes/extensions:/var/www/FreshRSS/extensions
# Optional file providing custom global settings (used before a FreshRSS install)
#- ./config.custom.php:/var/www/FreshRSS/data/config.custom.php
# Optional file providing custom user settings (used before a new user is created)
#- ./config-user.custom.php:/var/www/FreshRSS/data/config-user.custom.php
ports:
# If you want to open a port 8080 on the local machine:
- "8080:80"
environment:
# A timezone http://php.net/timezones (default is UTC)
TZ: America/Chicago
# Cron job to refresh feeds at specified minutes
CRON_MIN: '2,32'
# 'development' for additional logs; default is 'production'
#FRESHRSS_ENV: development
# Optional advanced parameter controlling the internal Apache listening port
#LISTEN: 0.0.0.0:80
# Optional parameter, set to 1 to enable OpenID Connect (only available in our Debian image)
# Requires more environment variables. See https://freshrss.github.io/FreshRSS/en/admins/16_OpenID-Connect.html
OIDC_ENABLED: 0
# 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 ${BASE_URL}
# --db-base ${DB_BASE}
# --db-host ${DB_HOST}
# --db-password ${DB_PASSWORD}
# --db-type pgsql
# --db-user ${DB_USER}
# --default_user admin
# --language en
#FRESHRSS_USER: |-
# --api_password ${ADMIN_API_PASSWORD}
# --email ${ADMIN_EMAIL}
# --language en
# --password ${ADMIN_PASSWORD}
# --user admin
postgres:
image: postgres:15
container_name: postgres
hostname: postgres
restart: unless-stopped
logging:
options:
max-size: 10m
#volumes:
# - ./volumes/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_BASE:-freshrss}
POSTGRES_USER: ${DB_USER:-freshrss}
POSTGRES_PASSWORD: ${DB_PASSWORD:-freshrss}
ports:
- "5432:5432"
command:
# Examples of PostgreSQL tuning.
# https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
# When in doubt, skip and stick to default PostgreSQL settings.
- -c
- shared_buffers=1GB
- -c
- work_mem=32MB