This image uses nodejs, npm, npx and mongod extracted from Meteor dev bundle.
# Starting App with internal MongoDB
docker run --rm --name meteor-app -it \
-v /DIR_WITH_BUNDLE_TAR:/bundle \
-v /DIR_MONGO_DATA_WITH_WRITE_PERMISSION:/mongodb-data \
--env USE_INTERNAL_MONGODB=true \
--env ROOT_URL=http://localhost:3000 \
--env PORT=3000 \
-p 3000:3000 \
-p 27018:27017 \
zcloudws/meteor-node-mongodb-runtime:2.11.0
- Internal MongoDB defult run on port 27017. use environment variable
MONGODB_PORT
to run on another port - To start internal MongoDB use environment variable
USE_INTERNAL_MONGODB=true
- To change default data directory use environment variable
MONGODB_DATA_DIR=/mongodb-data
- To pass extra arguments for
mongod
use environment variableMONGODB_EXTRA_ARGS
- To disable npm running on startup use environment variable
RUN_NPM_INSTALL=false
Extra packages installed
${VERSION}-with-tools
: build-essential git python${VERSION}-with-tools-ffmpeg
: build-essential git python ffmpeg
- User: zcloud
- Group: zcloud
- UID: 65123
- GID: 65123
by Quave