Created
November 13, 2018 19:33
-
-
Save leonardocouy/dfb8fbf14d6547cff21d12a01647a19b to your computer and use it in GitHub Desktop.
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.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: |
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
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