Matthew Maldonado
05/14/2020, 10:02 PMLaura Lorenz (she/her)
05/15/2020, 1:18 AMprefect server start
runs a docker compose file that specifies a postgres container with no volumes mounted, so the storage is ephemeral, lasting as long as the container isn’t removed. If the container is removed (which happens if you ctrl-c out of prefect server start
, for example, which you might have done when you ran the start command again and got port conflicts like I just did when I reproduced your issue), then it will be a new database when the next container starts. For longer running installations, running from the docker-compose file directly, or a modification of it with the volumes you want for your postgres database, or otherwise running the database (and any other of the services listed in the docker compose file you want to run without docker compose) gives you more control over your server installation. The specific docker compose file I am referring to is here: https://github.com/PrefectHQ/prefect/blob/master/src/prefect/cli/docker-compose.yml