For deploying with Docker Compose there are two options.
- Deploy and All-In-One solution.
- Deploy all components one by one.
- 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
For the all All-In-One deployment a docker-compose.yaml example file can be found in the all-in-one directory.
Once the docker-compose.yaml files are updated to match your environment the following can be used
$ docker compose upNOTE: 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.
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.
You can find the game here and the game master console here.
For the component deployment the following docker-compose example files are available:
- postgresql in the folder postgresql
- iam in the folder iam
- controller in the folder controller
- worker in the folder worker
- single in the folder single
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 upThe order in which components should be started is as follows. Always make sure component is running correctly before starting the next.
- postgresql
- iam
- controller
- worker
- postgresql
- iam
- single