Skip to content

Instantly share code, notes, and snippets.

@justlev
Last active October 19, 2018 09:54
Show Gist options
  • Save justlev/0ec3f52456642cabcb8e85a3f1be63c6 to your computer and use it in GitHub Desktop.
Save justlev/0ec3f52456642cabcb8e85a3f1be63c6 to your computer and use it in GitHub Desktop.
version: '2.1'
services:
transactions-service:
build: TransactionsService/
expose:
- 3003
ports:
- 3003:3003
analytics-service:
build: analytics-service/
depends_on:
- db
expose:
- 3002
ports:
- 3002:3002
environment:
- USERS_SERVICE_URL=http://users-service:3000/
- DB_CONNECTION=mongodb://db:27017/analytics
users-service:
build: users-service/
depends_on:
- db
expose:
- 3000
ports:
- 3000:3000
environment:
- DB_CONNECTION=mongodb://db:27017/users
db:
image: mongo:latest
expose:
- 27017
ports:
- 27017:27017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment