- Docker and Docker Compose v2
- Clone the repo:
git clone https://github.com/OneBacklog/Arctic
cd Arctic- Generate secrets and create data folders:
APP_ENV=development bash setup.sh- Start the services:
docker compose -f compose.dev.yaml up -d --buildThe app will run at http://localhost:3000 with hot reload on app/ and server/.
- After the app is running, generate your OTP secret:
docker compose -f compose.dev.yaml run --rm setup-auth- Reset the OTP secret (generates a new key) if somehow you lose it:
docker compose -f compose.dev.yaml run --rm -e RESET=1 setup-authdocker compose -f compose.dev.yaml restart app
docker compose -f compose.dev.yaml logs -f app
docker compose -f compose.dev.yaml downMigrations in server/database/migrations/ run automatically on startup.
Generate a migration after editing server/database/schema.ts:
npx drizzle-kit generate --name=<migration-name>Open the DB inspector:
npx drizzle-kit studio