How to use the three-tier software of docker compose architecture
This article is about how to use docker compose architecture three-tier software, the editor feels very practical, so share with you to learn, I hope you can learn something after reading this article, say no more, follow the editor to have a look.
Stop the docker container and empty it.
Cat > docker-compose.yml
Redis:
Image: redis
Db:
Image: postgres:9.4
Vote:
Image: voting-app
Ports:
-5000Rank 80
Links:
-redis
Worker:
Image: worker-app
Links:
-db
-redis
Result:
Image: result-app
Ports:
-5001PUR 80
Links:
-db
Docker-compose up-d
It's all up. I feel like I don't want K8s with docker compose.
Both the front and rear ends are displayed normally.
The above is how to use the three-tier software of docker compose architecture. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.