This repository contains a Dockerized SvelteKit and PocketBase web application with a simple OAuth2 authentication system. The project leverages Docker Compose to easily set up and manage the entire development environment.
Prerequisites: Docker Desktop (should come with docker compose)
Clone the repository:
git clone https://github.com/PDelos/SvelteKit-PocketBase-Web-App-with-OAuth2---Dockerized.git
cd Datathon_Web
Build and start the Docker containers:
docker-compose up --build
Data is stored in pb_data
. Access PocketBase admin UI at http://localhost:8090/_/.
To properly configure OAuth2 providers, ensure the following:
Set the Redirect URI: In your OAuth2 provider's settings, set the redirect URI to:
http://localhost:5173/login
Add Client ID and Client Secret: In the PocketBase admin dashboard:
.bat
/ .sh
scripts to deploy or destroy all the containers.docker exec -it sveltekit /bin/sh
docker exec -it pocketbase /bin/sh