Option 2: Install Docker
The goal is to deploy 2 services: a backend service and a frontend service.
- The backend service is a FastAPI service that will interact with OpenAI API.
- The frontend service is a SvelteKit application.
If you are running the services manually, you will need to set your OpenAI key in the backend service environment.
Create a file call .env
in the root directory and put only your OpenAI key in it.
OPENAI_API_KEY=...
The
docker-compose.yml
will include this file's variables in thebackend
container environment.
Note: find your configure token in the Outerbounds UI.
cd pdf-app/backend
pip install -r requirements.txt
outerbounds configure <>
uvicorn main:app --host 0.0.0.0 --port 8000
cd pdf-app/frontend
npm i
npm run dev
docker pull docker.io/eddieob/pdf-app-frontend:latest
docker pull docker.io/eddieob/pdf-app-backend:latest
With container built:
docker compose up --build
After you have the containers built once, remove --build
to start the containers faster:
docker compose up