Created
January 22, 2018 23:22
-
-
Save naderio/fe20499e5d51001cf9aeef950a996748 to your computer and use it in GitHub Desktop.
Meteor Docker Development Setup
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: '2.3' | |
services: | |
mongo: | |
image: mongo:3.4 | |
hostname: mongo | |
ports: | |
- "27017:27017" | |
volumes: | |
- "./tmp:/data/tmp" |
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: '2.3' | |
services: | |
placeholder-app: | |
build: . | |
container_name: placeholder-app | |
hostname: placeholder-app | |
ports: | |
- "3010:80" | |
volumes: | |
- .:/app | |
environment: | |
- MONGO_URL=mongodb://172.17.0.1:27017/placeholder-app | |
- MAIL_URL=smtp://172.17.0.1:1025 | |
- ROOT_URL=http://localhost:3010 |
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:8 | |
RUN curl https://install.meteor.com/ | sh | |
RUN mkdir /app | |
WORKDIR /app | |
COPY . /app | |
ENV METEOR_ALLOW_SUPERUSER=true | |
ENV PORT=80 | |
EXPOSE $PORT | |
CMD meteor run -p 0.0.0.0:$PORT $METEOR_ARGS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment