Skip to content

Instantly share code, notes, and snippets.

@naderio
Created January 22, 2018 23:22
Show Gist options
  • Save naderio/fe20499e5d51001cf9aeef950a996748 to your computer and use it in GitHub Desktop.
Save naderio/fe20499e5d51001cf9aeef950a996748 to your computer and use it in GitHub Desktop.
Meteor Docker Development Setup
version: '2.3'
services:
mongo:
image: mongo:3.4
hostname: mongo
ports:
- "27017:27017"
volumes:
- "./tmp:/data/tmp"
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
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