Skip to content

Instantly share code, notes, and snippets.

@damiancipolat
Created August 20, 2020 03:58
Show Gist options
  • Save damiancipolat/5b84fa32dd500a6bde3db89d86a4902d to your computer and use it in GitHub Desktop.
Save damiancipolat/5b84fa32dd500a6bde3db89d86a4902d to your computer and use it in GitHub Desktop.
Example of docker compose of many nodejs containers
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