简体   繁体   中英

Docker hub with two images

I wrote a program with java spring boot and angular cli and wrote the docker file for both and it works with docker compose so that in docker compose the angular links to spring boot. When I want to upload to docker hub I uploaded the two images but the docker compose can't be uploaded. How do I links between two containers?

Thanks

Edit: Here's link to my docker compose in github

https://www.github.com/GillieDudikman/item-springboot-angular/tree/master/docker-compose.yml

You do not upload your docker compose file to docker hub. Docker hub is an image repository not a code repository. Push your code to GitHub or bitbucket instead
When someone wants to use your images they can pull them from docker hub and use them like any other image. You can add to the description in docker hub how to use the images and even a link to your project if you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM