Created
August 20, 2020 03:58
-
-
Save damiancipolat/5b84fa32dd500a6bde3db89d86a4902d to your computer and use it in GitHub Desktop.
Example of docker compose of many nodejs containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
home: | |
container_name: home-service | |
restart: always | |
build: ./home-service | |
ports: | |
- "172.24.0.1:5000:8080" | |
clients: | |
container_name: clients-service | |
restart: always | |
build: ./clients-service | |
ports: | |
- "172.24.0.1:5001:8080" | |
bff: | |
container_name: bff-service | |
restart: always | |
build: ./bff-service | |
ports: | |
- "172.24.0.1:5002:8080" | |
environment: | |
- NODE_ENV=develop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment