Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use the three-tier software of docker compose architecture

Shulou Source: shulou.com Published: 2022-06-01 01:17:53 11月13日 Update

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.

Tags: Architecture software more knowledge articles utility containers that is work meetings feelings articles read knowledge points industry details information information channels follow parts channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology Shulou Information NVidia macOS