Skip to content

Example of using React and SocketIO with Flask and Celery workers in Docker containers

Notifications You must be signed in to change notification settings

kkarimi/react-docker-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run:

docker-compose build
docker-compose up -d # run in detached mode

Assuming your your docker-machine ip is 192.168.99.100:

  • http://192.168.99.100:8080 for the front end (React SPA - ES6, webpack, socketio, basscss, etc)

  • http://192.168.99.100:80 for the nginx proxy to back end (enable CORS)

  • http://192.168.99.100:5000 for the back end (Flask - CORS, socketio / celery / redis / worker tasks)

  • http://192.168.99.100:5555 for flower monitoring server

To scale the workers, now run docker-compose scale worker=5 will create 4 more containers each running a worker, check the flower to show the workers waiting for jobs.

About

Example of using React and SocketIO with Flask and Celery workers in Docker containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published