Skip to content

Instantly share code, notes, and snippets.

@maggiesavovska
Last active October 10, 2016 19:51
Show Gist options
  • Save maggiesavovska/897ef5403a3e4760917a50b952d4cb27 to your computer and use it in GitHub Desktop.
Save maggiesavovska/897ef5403a3e4760917a50b952d4cb27 to your computer and use it in GitHub Desktop.
getting started with docker
version: "2"
services:
web:
build: .
command: nodemon --debug=5858
volumes:
- .:/code
links:
- couchdb
ports:
- "8000:8000"
- "5858:5858"
couchdb:
image: klaemo/couchdb
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