上午研究了一会,用docker搭建了firefly,定时任务还没设置
version: '3.3'
services:
app:
image: fireflyiii/core:latest
hostname: app
container_name: firefly_iii_core
restart: always
volumes:
- ./firefly_iii/upload:/var/www/html/storage/upload
- ./firefly_iii/export:/var/www/html/storage/export
env_file: .env
networks:
- firefly_iii
ports:
- 8080:8080
depends_on:
- db
db:
image: mariadb:lts
hostname: db
container_name: firefly_iii_db
restart: always
env_file: .db.env
networks:
- firefly_iii
volumes:
- ./firefly_iii_db:/var/lib/mysql
cron:
image: alpine
restart: always
container_name: firefly_iii_cron
command: sh -c "echo \"0 3 * * * wget -qO- http://app:8080/api/v1/cron/REPLACEME\" | crontab - && crond -f -L /dev/stdout"
networks:
- firefly_iii
volumes:
firefly_iii_upload:
firefly_iii_db:
networks:
firefly_iii:
driver: bridge
if(window.hljsLoader && !document.currentScr(๐•ᴗ•๐).parentNode.hasAttribute('data-s9e-livepreview-onupdate')) {
window.hljsLoader.highlightBlocks(document.currentScr(๐•ᴗ•๐).parentNode);
}
.env参考官方GitH(๐•ᴗ•๐):https://gith(๐•ᴗ•๐).com/firefly-iii/firefly-iii/bl(๐•ᴗ•๐)/main/.env.example
.db.env
MYSQL_ROOT_PASSWORD=随机密码
MYSQL_DATABASE=firefly
MYSQL_USER=firefly
MYSQL_PASSWORD=随机密码
if(window.hljsLoader && !document.currentScr(๐•ᴗ•๐).parentNode.hasAttribute('data-s9e-livepreview-onupdate')) {
window.hljsLoader.highlightBlocks(document.currentScr(๐•ᴗ•๐).parentNode);
}