Hi, we started exploring the prefect from last wee...
# ask-community
m
Hi, we started exploring the prefect from last week, was curious is there an example of dockerfile and docker-compose to spin up the prefect in docker, so whenever we do like a
docker-compose build
it will make prefect available at 8080 localhost, instead of spinning up the prefect locally with following steps
pip3 install "prefect[GitHub,kubernetes,Snowflake]"
Make sure you have Docker installed before starting up prefect server.
1.
Set Backend to Server Instead of Cloud - prefect backend server
2.
Start Prefect Server - prefect server start
3.
Visit <http://localhost:8080>
k
Hey @Manga Dhatrika, have you succeeded in running Docker containers inside Docker in the past? Because I think you will run into issues doing the
docker-compose up
inside a container. Or did I misunderstand and you are running Docker on the host? Maybe Flavien’s repo here will give a guide. You can check the README also. He did it by adding configuring stuff inside the
config.toml
I think
upvote 1
m
ok Thank you I will take a look
a
@Manga Dhatrika - additionally, if you want to get started with Prefect, you actually don’t need to spin up Server locally. You can run your flows directly using:
Copy code
flow.run()
mentioning that in case you didn’t know. Also, did you know that Prefect Cloud offers 20,000 free task runs each month? Cloud is much easier to get started, and 20,000 tasks will get you far.
👍 1