Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

CodeAndBeers/LGWS

Repository files navigation

Les loups-garous de Wall Street

Prerequisites

LGWS is a docker based application, you only need two things :

You can easily install docker-compose using pip !

$ sudo apt update && apt install python-pip
$ pip install docker-compose

Installation

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 :

http://localhost:8080

How it works

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

Usefull commands

List all running containers:

$ docker ps

Stop all running containers:

$ docker-compose stop

Remove all docker volumes:

$ docker-compose rm -v

Links :