Skip to content

Instantly share code, notes, and snippets.

@EdyVision
Created June 24, 2021 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EdyVision/6573256a5f7df424a6cd53d98fc679a0 to your computer and use it in GitHub Desktop.
Save EdyVision/6573256a5f7df424a6cd53d98fc679a0 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
mongo:
image: mongo
restart: always
ports:
- 27017:27017
bookapi:
image: bookapi
restart: always
ports:
- 3000:3000
links:
- mongo
environment:
- DB_URL=mongodb://mongo:27017
- DB_NAME=bookapi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment