Any help regarding this would be great. TIA.
# ask-marvin
s
Any help regarding this would be great. TIA.
n
i'd guess that you're not creating deployments on the server that you're viewing in the UI what is the value of PREFECT_API_URL at deployment creation time? i suspect its not the one you're viewing in the UI
s
Hi Nate, I'm using PREFECT_API_URL=http://prefect:4200/api as this. Also, my deploy command is preceded by
RUN prefect work-pool create --type process alerts
and this creates the work-pool fine in my UI, but deploy seems to be not deploying. My complete command in my Dockerfile is
RUN prefect work-pool create --type process alerts && prefect --no-prompt deploy --all
More information on my docker-compose:
Copy code
services:
  db:
    image: postgres:latest
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=yourTopSecretPassword
      - POSTGRES_DB=prefect
    ports:
      - "5432:5432"
    volumes:
      - db:/var/lib/postgresql/data

  prefect:
    image: prefecthq/prefect:3-latest
    command: prefect server start --host 0.0.0.0
    environment:
      - PREFECT_LOGGING_LEVEL=DEBUG
      - PREFECT_API_DATABASE_CONNECTION_URL=<postgresql+asyncpg://postgres:yourTopSecretPassword@db:5432/prefect>
    ports:
      - "4200:4200"
    depends_on:
      - db

  worker:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: prefect_worker_alert
    environment:
      - PREFECT_API_URL=<http://prefect:4200/api>
      - PREFECT_LOGGING_LEVEL=DEBUG
    restart: unless-stopped
@Nate
n
deploy seems to be not deploying
this isn't enough information, so feel free to open a discussion or issue with steps to reproduce this and what error you're seeing