Lyndsay
01/13/2025, 8:12 PMMarvin
01/13/2025, 8:13 PM.env
file in your project directory with the following content:
bash
PREFECT_API_URL=<http://localhost:4200/api> # or your Prefect Cloud URL
PREFECT_API_KEY=pnu_1234567890abcdefghijklmnopqrstuvwxyz # if using Prefect Cloud
2. Start the Server: Use Docker Compose to start the Prefect server with the following command:
bash
docker compose up -d
3. Stream Logs: If you want to view the logs, you can use:
bash
docker compose logs -f
4. Stop the Server: To stop the server, execute:
bash
docker compose down
This setup allows you to run a Prefect server locally using Docker Compose, making it easy to manage and deploy. For more details, you can refer to the Prefect documentation or other resources you might find relevant.Lyndsay
01/13/2025, 8:14 PMNate
01/13/2025, 8:17 PMLyndsay
01/13/2025, 8:19 PMNate
01/13/2025, 8:25 PM» prefect config set PREFECT_API_URL=<http://0.0.0.0:4200/api>
Set 'PREFECT_API_URL' to '<http://0.0.0.0:4200/api>'.
Nate
01/13/2025, 8:25 PMNate
01/13/2025, 8:26 PMNate
01/13/2025, 8:26 PMLyndsay
01/13/2025, 8:29 PM