Last active
October 10, 2016 19:51
-
-
Save maggiesavovska/897ef5403a3e4760917a50b952d4cb27 to your computer and use it in GitHub Desktop.
getting started with docker
This file contains hidden or 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: "2" | |
services: | |
web: | |
build: . | |
command: nodemon --debug=5858 | |
volumes: | |
- .:/code | |
links: | |
- couchdb | |
ports: | |
- "8000:8000" | |
- "5858:5858" | |
couchdb: | |
image: klaemo/couchdb |
This file contains hidden or 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 node:argon | |
# Create app directory | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
COPY package.json /usr/src/app/ | |
RUN npm install | |
# Bundle app source | |
COPY . /usr/src/app | |
EXPOSE 8080 | |
CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment