https://prefect.io logo
Title
a

Adam

10/12/2022, 8:27 PM
Hello - I have a weird one. I’m hosting an orion server locally via docker, I have an external volume attached but the volume directory is empty. I was expecting a sqlitedb and config files?
1
k

Kalise Richmond

10/13/2022, 6:10 PM
Hey Adam, what commands are you running to start to the server and what configurations do you have set?
a

Adam

10/13/2022, 8:14 PM
hey @Kalise Richmond - I’m doing a docker compose up with these configs:
version: "3.9"
services:

    orion:
        container_name: orion
        image: prefecthq/prefect:2.4.5-python3.10
        ports:
            - 4200:4200
        restart: unless-stopped
        volumes:
          - prefect-orion-data:/.prefect
        environment:
            PREFECT_ORION_API_HOST: 127.0.0.1
            PREFECT_ORION_API_PORT: 4200
            PREFECT_ORION_UI_API_URL: <http://x.x.x.x/api>
        command: prefect orion start --host 0.0.0.0 --port 4200

volumes:
  prefect-orion-data:
    external: true
m

Mason Menges

10/13/2022, 8:31 PM
I'm not 100% certain on this but I think you may need to set this variable as well to point to the external volume
PREFECT_HOME='~/.prefect'
by default this is where it's going to create the sqlitedb since the home directory is used when setting this path variable
PREFECT_ORION_DATABASE_CONNECTION_URL='sqlite+aiosqlite:///${PREFECT_HOME}/orion.db' (from defaults)
a

Adam

10/14/2022, 3:38 PM
@Mason Menges just kidding, my path was ./prefect. It worked!