Development In Docker
May 7, 2022 ยท View on GitHub
Hangoff
Your good old hangman game, with a new word each day, in the browser!
Multiplayer mode - coming soon
Development In Docker
$ docker build -t hangoff:app-dev -f hangoff-app/dev.Dockerfile ./hangoff-app
Build the server image using the following command
$ docker build -t hangoff:server-dev -f hangoff-server/dev.Dockerfile ./hangoff-server
Run development containers using the command shown below. Note that development environment requires local dependencies has to be installed
$ docker-compose -f dev.docker-compose.yml up -d
Production In Docker
Build the app image using the following command
$ docker build -t hangoff:app -f hangoff-app/Dockerfile ./hangoff-app
Build the server image using the following command
$ docker build -t hangoff:server -f hangoff-serverDockerfile ./hangoff-server
Run production containers using the command shown below.
$ docker-compose up -d
Environment Variables
| Variable | Default Value |
|---|---|
| SERVER_PORT | 5545 |
| VOCABULARY_URI |
Please Make Sure to run DB container as well and also the netwrok is the same docker network