Docker Image for Meteor production and development. Using Meteor+Passenger+Fig, with a volume shared between the container and the host system.
- Create a folder named
webapp
(meteor create webapp); thencd weapp
.
- Copy fig-dev.yml file to the current folder (insider webaap folder);
wget https://raw.githubusercontent.com/zhouzhuojie/docker-passenger-meteor/master/fig-dev.yml
- Remember to change the mongodb volume in the fig.yml file.
/path/to/db:/data/db
fig -f fig-dev.yml up
to start the services.
- Copy fig.yml file to the current folder (insider webaap folder);
wget https://raw.githubusercontent.com/zhouzhuojie/docker-passenger-meteor/master/fig.yml
- Remember to change the mongodb volume in the fig.yml file.
/path/to/db:/data/db
fig up
to start the services.
- The fig.sh will remove
.meteor/local
, which means the default development local mongodb will be reset. We highly recommend to use the mongodb docker image instead (both are integrated in thefig.yml
andfig-dev.yml
).
MIT