This docker-compose.yml file sets up a local Prefect environment using Prefect version 2.19.7. It includes services for PostgreSQL, MinIO, Prefect Server, and Prefect Worker (Docker).
-
Create a
.envfile with the following content:BASE_URL=http://localhost POSTGRES_USER=your_user POSTGRES_PASSWORD=your_password MINIO_ROOT_USER=your_user MINIO_ROOT_PASSWORD=your_password
-
Start the services:
docker-compose up -d
-
Access the services:
- Prefect Server UI:
http://localhost:4200 - MinIO Console:
http://localhost:9001
- Prefect Server UI:
-
Stop the services:
docker-compose down
-
Clean up:
docker-compose down -v