Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Deploying with Docker Compose

For deploying with Docker Compose there are two options.

  • Deploy and All-In-One solution.
  • Deploy all components one by one.

Prerequisite

  • Build the images as described here.
  • Update hosts file to contain the line below so IAM will work.
    127.0.0.1 host.docker.internal
    

All-In-One Deployment

For the all All-In-One deployment a docker-compose.yaml example file can be found in the all-in-one directory.

Starting

Once the docker-compose.yaml files are updated to match your environment the following can be used

$ docker compose up

NOTE: The worker needs to connect to the controller and the controller needs to connect keycloak to start property. This will give errors during startup, but eventually it will all sort itself out and end up in a running state. Docker compose depends_on sadly does not wait for containers to be started.

Adding Users

Once the environment is up, you need to log into the keycloak console with username keycloak and password keycloak. Create a new user in the moj realm and add it to the admin group.

GUIs

You can find the game here and the game master console here.

Component Deployment

For the component deployment the following docker-compose example files are available:

Starting

Once the docker-compose.yaml files for all needed components are updated to match your environment the following can be used for every component.

$ docker compose up

The order in which components should be started is as follows. Always make sure component is running correctly before starting the next.

Controller Worker Setup

  • postgresql
  • iam
  • controller
  • worker

Single Setup

  • postgresql
  • iam
  • single