Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.27 KB

File metadata and controls

47 lines (32 loc) · 1.27 KB

Nodejs runtime from Meteor with MongoDB

This image uses nodejs, npm, npx and mongod extracted from Meteor dev bundle.

Running example

# 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

MongoDB

  • 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 variable MONGODB_EXTRA_ARGS

Npm install at startup

  • To disable npm running on startup use environment variable RUN_NPM_INSTALL=false

Tags suffix

Extra packages installed

  • ${VERSION}-with-tools: build-essential git python
  • ${VERSION}-with-tools-ffmpeg: build-essential git python ffmpeg

User information:

  • User: zcloud
  • Group: zcloud
  • UID: 65123
  • GID: 65123

by Quave