freshrss: update

This commit is contained in:
zhengyi 2024-02-01 22:49:44 +08:00
parent d2ffbf5e15
commit b3f03ebba9
1 changed files with 11 additions and 24 deletions

View File

@ -1,37 +1,18 @@
version: "2.4"
volumes:
data:
extensions:
services:
freshrss:
image: freshrss/freshrss:edge
# 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#edge
dockerfile: Docker/Dockerfile-Alpine
container_name: freshrss
image: freshrss/freshrss:1.23.1
restart: unless-stopped
logging:
options:
max-size: 10m
volumes:
# Recommended volume for FreshRSS persistent data such as configuration and SQLite databases
- data:/var/www/FreshRSS/data
# Optional volume for storing third-party extensions
- 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
- ./data:/var/www/FreshRSS/data
- ./extensions:/var/www/FreshRSS/extensions
ports:
# If you want to open a port 8080 on the local machine:
- ${PANEL_APP_PORT_HTTP}:80
environment:
# A timezone http://php.net/timezones (default is UTC)
TZ: Europe/Paris
TZ: Asia/Shanghai
FRESHRSS_INSTALL: |-
--api_enabled
--base_url ${BASE_URL}
@ -47,4 +28,10 @@ services:
--email ${ADMIN_EMAIL}
--language zh-cn
--password ${ADMIN_PASSWORD}
--user admin
--user admin
networks:
- 1panel-network
networks:
1panel-network:
external: true