The back-end of PokéClicker
Application is running at the following URL: http://docker.uva-se.nl/users
- Make sure that
maven
is installed - Make sure that
docker
is installed and running - Make sure that
docker-compose
is installed - Copy the
.env.template
file to a file with the name.env
and change the values accordingly - Run
mvn clean package
- Run
docker-compose build --no-cache
- Run
docker-compose up --force-recreate
- Run
docker-compose up --force-recreate database redis
- Run the
backend
manually making sure that it has access to the environment variables from the.env
file
The application should now be accessible under: http://localhost:${backend_port}/
- The variables
db_host
,redis_master_host
, andredis_slave_host
are directly mapped todocker-compose
services. Thus, the chosen names in thedocker-compose.yml
strictly have to match those two variables. - The variables
backend_port
,db_port
, andredis_port
are also used to expose the respective services to your host machine. Consequently, make sure that you don't overlap a port already used on your host machine.
The application is built in a way that it is fully session-less, meaning that the backend
service can be easily horizontally scaled. Only the database
and redis
services need to stay
singleton instances.
Add more information on the Deployment
.