🐋 Docker volume for Sqlite
Some checks failed
Deploy application / deploy (push) Failing after 7s

- Moved database to subdir specified by env
- Default data dir /data
- Move loggers to cronJob onTick
- Added volume for data dir in Docker compose
- Create any missing dir specified by env
This commit is contained in:
2025-01-26 19:29:43 +01:00
parent aaa85e99cb
commit 9850017e3a
8 changed files with 34 additions and 23 deletions

View File

@ -1,8 +1,7 @@
services:
# TODO Database in storage
server:
container_name: actual_budget_sparebank1
restart: no # TODO unless-stopped
container_name: actual_sparebank1_cronjob
restart: unless-stopped
build:
context: .
environment:
@ -19,4 +18,10 @@ services:
- BANK_OAUTH_REDIRECT_URI
- BANK_ACCOUNT_IDS
- LOG_LEVEL
- DB_DIRECTORY # Required for Docker Compose
- DB_FILENAME
volumes:
- data:/${DB_DIRECTORY}
volumes:
data: