feat(api): dockerize backend with compose, migrations-on-start, and run docs

This commit is contained in:
Bas van Rossem
2026-06-17 13:54:48 +02:00
parent 04cfe0f726
commit bcb305b048
5 changed files with 72 additions and 0 deletions

17
docker-compose.yml Normal file
View File

@@ -0,0 +1,17 @@
services:
api:
build:
context: .
dockerfile: apps/api/Dockerfile
ports:
- '3000:3000'
environment:
DATABASE_URL: file:/data/app.db
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-change-me-to-a-long-random-string}
BETTER_AUTH_URL: http://localhost:3000
PORT: '3000'
volumes:
- solelog_db:/data
volumes:
solelog_db: