Hello - I have a weird one. I’m hosting an orion s...
# ask-community
a
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
Hey Adam, what commands are you running to start to the server and what configurations do you have set?
a
hey @Kalise Richmond - I’m doing a docker compose up with these configs:
Copy code
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
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
@Mason Menges just kidding, my path was ./prefect. It worked!