Skip to content

fangjj/meteor-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor Micro-Service Cluster

Stack

App Containers

  • Dockerfiles based on gbhrdt/meteord (https://hub.docker.com/r/gbhrdt/meteord/, 1.3.2.4+ compatible)
  • Processor has Graphicsmagick and FFMPEG 3.0 added to the container
  • Webapp is just a normal Meteor Application
  • Both Meteor apps are cluster-enabled through meteorhacks:cluster

Prerequisits

  1. Docker Tools installed locally, you will only need the CLI Tools
  2. Docker Machine XYZ & Env Set (docker-machine env XYZ)
  3. Any domain and a DNS where you can setup A records.

Steps

  1. Get an instance and open ports: 443, 80.
  2. Add an A entry in dns connecting your docker machine with a subdomain.
  3. configure subdomain in ./docker-compose.yml, configure log-receiver url in ./nginx/docker-compose.yml
  4. inside ./nginx: docker-compose up, check if ssl certificate has been requested successfully.
  5. inside ./: docker-compose up clustertest-db, don't up the meteor apps yet.
  6. Access mongodb and start replica: rs.initiate(), ready for connection.
  7. inside ./: docker-compose up, this can take a long time.

Other Things

Scaling (useful in Swarm environment)

  • Spawn auto-balanced processors and web instances like this: docker-compose scale web=2 processor=5, cool hm?

About

Meteor Cluster with docker-compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published