I'm trying to run the Hygieia Dashboard using docker-compose by following this below URL Instructions and it throw me this error when I run docker-compose up -d command.
docker-compose up -d
ERROR: Service 'ui' depends on service 'api' which is undefined.
I even try to pull hygieia-api:latest image and it's not available. Any help is appreciated.
Steps URL:
http://hygieia.github.io/Hygieia/builddocker.html
Experienced the same issue: What worked for me:
mvn clean install docker build -t hygieia-api .api:
image: hygieia-api
depends_on:
- db.
Then start Hygieia Dashboard using docker-compose as described with:
docker-compose up -d
version: '3'
services:
db:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- "db-data:/data/db"
db-setup:
build: db
depends_on:
- db
api:
image: hygieia-api
depends_on:
ui:
build: UI
image: hygieia-ui
depends_on:
- api
ports:
- "3000:80"
volumes:
db-data:
certs:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I was able to use the other image and it worked for me. Thanks @itmatters @dasaradhan , for your help.
This is still not fixed in the main repo though
Yeah I believe things are not very up to date now because they are in the process of splitting up the project into modules
Most helpful comment
Experienced the same issue: What worked for me:
mvn clean installdocker build -t hygieia-api .Then start Hygieia Dashboard using docker-compose as described with: