Upload files to "Firefly 3"
This commit is contained in:
parent
6e834062da
commit
93da6c1ff5
22
Firefly 3/backup-gitea.sh
Normal file
22
Firefly 3/backup-gitea.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
password="Jumbocarrot&001"
|
||||
|
||||
cd /home/jadowyne/dockers/gitea
|
||||
|
||||
docker compose down
|
||||
|
||||
cd ..
|
||||
|
||||
timestamp=$(date -d "today" +"%Y%m%d%H%M")
|
||||
|
||||
sudo -S -p "$password" zip -r $timestamp-gitea.zip gitea
|
||||
|
||||
sudo -S -p "$password" cp -r $timestamp-gitea.zip /media/backups/gitea
|
||||
|
||||
sudo rm $timestamp-gitea.zip
|
||||
|
||||
cd /home/jadowyne/dockers/gitea
|
||||
|
||||
docker compose up -d
|
||||
|
||||
@ -1,44 +1,15 @@
|
||||
services:
|
||||
app:
|
||||
image: fireflyiii/core:latest
|
||||
hostname: app
|
||||
container_name: firefly_iii_core
|
||||
server:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
restart: always
|
||||
volumes:
|
||||
- firefly_iii_upload:/var/www/html/storage/upload
|
||||
env_file: .env
|
||||
networks:
|
||||
- firefly_iii
|
||||
- ./data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- 86: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:
|
||||
#
|
||||
# To make this work, set STATIC_CRON_TOKEN in your .env file or as an environment variable and replace REPLACEME below
|
||||
# The STATIC_CRON_TOKEN must be *exactly* 32 characters long
|
||||
#
|
||||
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
|
||||
- "3000:3000"
|
||||
- "222:22"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user