I am trying to combine different docker compose files such as Milvus docker compose and Apache Airflow within my own devcontainer on my own computer. Therfore I have prepared my own docker-compose file:
name: mlops-airflow-milvus
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ../:/workspaces:cached
- ../.bashrc:/home/vscode/.bashrc
command: sleep infinity
ports:
- "8000:5000"
# networks:
# - milvus
# - airflow
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
### Error: cannot override networks
# minio:
# extends:
# file: milvus-standalone-docker-compose.yml
# service: minio
# networks:
# - milvus
Unfortunatly from my Python environment (specifyed as Dockerfile, service: app) I cannot access the Minio service instance from Milvus using the Minio-command line tool mc
. It says connection refused
. But if I connect from outside the devcontainer it works well. I would like to download files and store it on the (milvus)-Mino instance.
Therefore I tryed to override the networks, however this isn’t possible.
I am not sure, if this is best development practice. Another way would be to define another Minio-container just for the access from app.