Hi all, I am using prefect 3.x and try to deploy a...
# ask-community
t
Hi all, I am using prefect 3.x and try to deploy a prefect flow using docker compose. Here is my dockerfile
Copy code
FROM prefecthq/prefect:3.2.6-python3.9
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
RUN addgroup --gid ol_data && adduser --disabled-password --gecos '' user1
USER user1

#Excutive python file
CMD [ "python", "flow.py" ]
This is my compose.yaml
Copy code
services:
  download:
    container_name: data1
    build: .
    volumes:
    - /local/path/:/datadir 
    env_file: .env
    user: "user1:ol_data"
    restart: always
When I start
docker compose up
, it said
watch →  watch is not yet configured. Learn more: <https://docs.docker.com/compose/file-watch>
and the process failed with`httpx.ConnectError: All connection attempts` I dont know where am I wrong and how to overcome this?
b
Hey t-vu! Here's a docker compose example you can reference.