feat(ci): set database location to local folder

This commit is contained in:
Bas van Rossem
2026-06-17 22:28:55 +02:00
parent 00993c67da
commit 7d1e816fe2

View File

@@ -20,12 +20,15 @@ services:
api:
image: gitea.vrossem.net/bas/solelog:latest
container_name: solelog-api
env_file: .env # BETTER_AUTH_SECRET, BETTER_AUTH_URL, CORS_ORIGINS
env_file: .env # BETTER_AUTH_SECRET, BETTER_AUTH_URL, CORS_ORIGINS
environment:
DATABASE_URL: file:/data/app.db
PORT: '3000'
volumes:
- solelog_db:/data
# Bind-mount the SQLite data dir onto attached storage on the host.
# Set SOLELOG_DATA_DIR in .env to an absolute path on your mounted disk
# (Docker creates it if missing). Falls back to ./data next to this file.
- ./data:/data
networks:
- solelog_network
restart: unless-stopped
@@ -47,6 +50,3 @@ services:
networks:
solelog_network:
external: true
volumes:
solelog_db: