Created
February 23, 2016 20:08
-
-
Save cbankston/624b965e37accbb832fb to your computer and use it in GitHub Desktop.
Node Docker Project
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
RDS_HOSTNAME=db | |
RDS_USERNAME=root | |
RDS_PASSWORD=some_pass | |
NODE_PATH=/app | |
MESSAGE_SERVICE_USERNAME=guest | |
MESSAGE_SERVICE_PASSWORD=guest | |
MESSAGE_SERVICE_PORT=5672 | |
MESSAGE_SERVICE_VHOST=/ | |
MESSAGE_SERVICE_HOST=rabbit |
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
db: | |
image: mysql:5.6 | |
ports: | |
- "3306:3306" | |
env_file: | |
- '.env.db' | |
rabbit: | |
image: rabbitmq:3.6-management | |
env_file: | |
- '.env.rabbit' | |
ports: | |
- "5672:5672" | |
- "15672:15672" | |
service: | |
build: . | |
volumes: | |
- .:/app | |
ports: | |
- "8888:8888" | |
links: | |
- db | |
- rabbit | |
env_file: | |
- '.env.service' |
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 node:5.5 | |
RUN mkdir /app | |
WORKDIR /app | |
ADD . /app/ | |
RUN npm install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What does this sequence of
RUN/WORKDIR/ADD
do? Generates a directory,cd
to it, but then theADD . /app/
? Isapp
just used for the volume mount?