LGWS is a docker based application, you only need two things :
- Docker - A Must have !
- Docker-compose - Easiest way to handle docker containers
You can easily install docker-compose using pip !
$ sudo apt update && apt install python-pip
$ pip install docker-compose
Only two steps, yes ma'm:
$ git clone https://github.com/CodeAndBeers/LGWS.git && cd LGWS/
$ docker-compose up -d
Now the project is building, you can take a look when it's finished by typing :
$ docker-compose logs
Now take a look at :
After running the command above you should have 3 containers :
- A non-running data only container named "data-client".
- A nginx container serving the client data
- A nodejs server application which handle the game mechanics
Details :
- Nginx logs are stored in ./nginx folder
- ./nodejs/.npmrc file allows docker to execute npm command as root user
List all running containers:
$ docker ps
Stop all running containers:
$ docker-compose stop
Remove all docker volumes:
$ docker-compose rm -v