Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose issue with swagger-server #1

Closed
tejajagadeep opened this issue May 5, 2024 · 1 comment
Closed

Docker compose issue with swagger-server #1

tejajagadeep opened this issue May 5, 2024 · 1 comment

Comments

@tejajagadeep
Copy link
Owner

tejajagadeep commented May 5, 2024

Problem Description

Hi all, there is an issue with swagger-server when you running $ docker-compose up.

Screenshot 2024-05-05 073023

There is no such issue when you are running the application locally.

Solution:

If you are facing with this issue then re-run only the docker image for swagger-server manually. Everything should work fine now. If the problem still persists please reach out.

docker restart swagger-container
@tejajagadeep
Copy link
Owner Author

tejajagadeep commented May 5, 2024

I have solved the issue

the issue is with the swagger-container running before config server even it does run after on failure restart it still gets some issue with docker compose because it is dependent on config server

Solution:

    entrypoint: sh -c "apk --no-cache add curl && /bin/sh -c 'until curl -sSf http://config-server:8888/actuator/health; do echo \"Waiting for config-server to be healthy...\"; sleep 5; done' && java -jar /usr/src/swagger-server-0.0.1-SNAPSHOT.jar"

I added this which solved the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant