I'd like to ask - how is it intended to be deploye...
# prefect-server
o
I'd like to ask - how is it intended to be deployed? There is no mention about docker-compose.yml in the docs.
j
If you run
prefect server start
then a compose file will be started (its not actually a file though I don't think its specified programatically)
But from outside a container yeah? Somewhere with Docker
o
i started container from
Copy code
prefecthq/prefect:latest
j
Yeah you want to start the server outside a container - this will bring up a collection of containers
o
So on the Host machine i need to install prefect and docker compose? Do I also need to provide a docker-compose file? Because there is none provided
j
Nope no compose file is required - within the prefect CLI the compose "file" is specified programaticly
No I lie there is a compose file (https://github.com/PrefectHQ/prefect/blob/master/src/prefect/cli/docker-compose.yml) but you don't need to use it - just run
prefect server start
on host
o
this is what i get when i run the command
j
Python 2!?
Change to a more recent python version - resinstall compose
o
ok, will do
i installed prefect via pip3 and docker-compose via apt
j
You seem to be somehow mixing packages from a python 2 install and python 3 - I would encourage you to use pyenv to manage python versions and then virtual env for running apps
Yeah that will be it!
o
thanks, i got it running
Just probably need to add some agent