There is the project with different types of snake game
Prepare before setup:
cp client/settings.json.dist client/settings.json // modify if need with your own params
cp server/settings.json.dist server/settings.json // modify if need with your own params
For prod mode
cd docker
docker-compose up --build -d
For dev mode
cd docker
docker-compose -f docker-compose-dev.yml up --build -d
docker exec -it snake_client npm run start
docker exec -it snake_db mongo admin -u root -p rootpassword --eval "use snake"
docker exec -it snake_db mongo admin -u root -p rootpassword --eval "db.getSiblingDB('snake').createUser({user: 'root', pwd: 'rootpassword', roles: ['readWrite']})"