/cwa-docker-compose

Start the german corona app backend with a single docker-compose file

cwa-docker-compose

Start the german corona warn app backend with a single docker-compose file

Unfortunately keycloak is not very docker friendly.

https://stackoverflow.com/questions/50670734/keycloak-in-docker-compose-network

Please add an entry to the hosts file of your docker host computer. Open /etc/hosts (Windows: C:\Windows\System32\drivers\etc\hosts) and add an entry "127.0.0.1 iam".

Setup process:

  • docker-compose up
  • Open keycloak admin interface at http://iam:8080 with user admin, password admin
  • Create a new user. Go to Users -> Add User. Enter a username, click "Email verified". After clicking save, go to "Credentials" and add a password. Uncheck "temporary", click "Set password".
  • Go to "Role Mappings" in the user submenu and add the roles c19hotline and teletan_generator.

Verification Portal

Open http://localhost:8081/cwa/start - this should redirect you to keycloak, where you can enter the credentials of the user that you manually created. After that, you will be redirected back to the verification portal where you should be able to generate a teleTAN.

Verification Server

You can see the swagger UI at this URL: http://localhost:8082/swagger-ui/

Testresult Server

To set a test result: try this:

curl -X POST -d "{"id":"x","result":1}" -H "content-type:application/json" localhost:8083/api/v1/app/result