Skip to content

Instantly share code, notes, and snippets.

@leonardocouy
Created November 13, 2018 19:33
Show Gist options
  • Save leonardocouy/dfb8fbf14d6547cff21d12a01647a19b to your computer and use it in GitHub Desktop.
Save leonardocouy/dfb8fbf14d6547cff21d12a01647a19b to your computer and use it in GitHub Desktop.
version: "3.6"
services:
app:
build: .
volumes:
- .:/app
- node_modules:/app/node_modules
ports:
- "8000:8000"
depends_on:
- mongo
mongo:
image: mongo:4.0.3
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
volumes:
mongo-data:
node_modules:
FROM mhart/alpine-node:11
WORKDIR /app
COPY . .
RUN npm install
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment