feat(ci): set database location to local folder
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user