Last active
June 29, 2019 14:04
-
-
Save tomsfernandez/8cccd464f193cc11ccb79e5dc5bbd513 to your computer and use it in GitHub Desktop.
Example Docker compose for Medium Article
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: '3' | |
services: | |
users-api: | |
image: users_api | |
container_name: "users-api" | |
depends_on: | |
- mongo | |
ports: | |
- "50051:50051" | |
environment: | |
PORT: 50051 | |
MONGO_HOST: "mongo" | |
MONGO_PORT: 27017 | |
MONGO_DB: users | |
mongo: | |
image: mongo:4 | |
container_name: "mongo" | |
ports: | |
- "27017:27017" | |
volumes: | |
- mongo_data:/data/db | |
volumes: | |
mongo_data: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment