1.2 KiB
1.2 KiB
VBytes Attendance
Requirements
- Docker Engine (with Compose v2)
Setup
-
Copy the provided
.envfile (already checked in). Adjust if needed:POSTGRES_PASSWORD=postgrespass123 JWT_SECRET=supersecretjwtkey ADMIN_USERNAME=admin ADMIN_PASSWORD=AdminPass!234 JWT_COOKIE_SECURE=false ENABLE_HTTPS_REDIRECT=false WEB_PORT=3000 CSRF_ALLOWED_ORIGINS=http://192.168.68.61:3000- Change
JWT_SECRETandADMIN_PASSWORDbefore production use. - Keep
JWT_COOKIE_SECURE=falseandENABLE_HTTPS_REDIRECT=falseunless you run behind HTTPS. - Update
CSRF_ALLOWED_ORIGINSlocal network ip/port you will use to host the application on.
- Change
-
Start the stack:
docker compose up -d --build -
Open the web app at
http://<this-machine-ip>:3000using the admin credentials (ADMIN_USERNAME,ADMIN_PASSWORD). -
Stop the stack:
docker compose downTo wipe Postgres data (e.g., after upgrading versions), also remove the volume:
docker volume rm vbytes_postgres-data
That’s it—the Compose file starts Postgres, the Rust API, and the SvelteKit frontend using the values from .env.