Skip to content

Instantly share code, notes, and snippets.

@alefcarlos
Created April 10, 2019 01:18
Show Gist options
  • Save alefcarlos/e90b3201ccd889af0e39cfc854520ec0 to your computer and use it in GitHub Desktop.
Save alefcarlos/e90b3201ccd889af0e39cfc854520ec0 to your computer and use it in GitHub Desktop.
version: '3.3'
services:
web:
build: .
image: demo-api
container_name: aspnet-core-webapi
restart: always
environment:
- MONGO_URI=mongodb://mongodb:27017/db
ports:
- "8181:80"
links:
- mongodb
depends_on:
- mongodb
mongodb:
image: mongo
container_name: "mongodb"
ports:
- "27017:27017"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment