https://prefect.io logo
Title
h

Harry Nguyen

09/08/2020, 4:44 AM
Hi guys, how do you dockerize your environment with prefect server? It starts by invoking docker-compose so I have to mount the host's docker socket to make that possible in dev, but what about production?
n

nicholas

09/08/2020, 1:45 PM
Hi @Harry Nguyen - Prefect Server is already fully dockerized; each portion of the stack lives in its own container, and all are connected via a docker network and then exposed to the host machine on various ports. Are you trying to put all of these within another container?
h

Harry Nguyen

09/10/2020, 12:53 AM
yes @nicholas I want to make prefect as part of my stack with my own docker-compose.yml, just wondering what would be the best way to do that?
n

nicholas

09/10/2020, 3:58 PM
Hm got it @Harry Nguyen - the best recommendation I have is to take a look at the
docker-compose.yml
file included in the Server and Core repos and see how they can be adapted to your own; since every set up is different I can't make any concrete recommendations.