diff --git a/core/README.md b/core/README.md index a6e62c1..7b5aa1f 100644 --- a/core/README.md +++ b/core/README.md @@ -7,19 +7,21 @@ This repo contains a docker compose and some configuration to get you started wi ## Getting started -To get all services up and running you must have docker compose installed. Enter this command to get things up and running: +### The first time +If you are doing this for the first time, you need to run a script to seed the environment: ``` -docker compose up -d +./scripts/init.sh ``` -If you are doing this for the first time, you need to run a script to seed the environment: +### After initialisation +To get all services up and running you must have docker compose installed. Enter this command to get things up and running: ``` -./scripts/init.sh +docker compose up -d ``` -You will also need to tell your local machine where to find the hosts. +You will also need to tell your local machine where to find the hosts. Add the following line in your hosts file (/etc/hosts ) ``` 127.0.0.1 engine.dev.openconext.local manage.dev.openconext.local profile.dev.openconext.local engine-api.dev.openconext.local mujina-idp.dev.openconext.local profile.dev.openconext.local connect.dev.openconext.local teams.dev.openconext.local voot.dev.openconext.local pdp.dev.openconext.local invite.dev.openconext.local welcome.dev.openconext.local @@ -36,7 +38,7 @@ docker compose --profile oidc down ### Loadbalancer and databases |name |function | -| --- | --- | +| --- | --- | |haproxy | loadbalancer | |mongo |Mongo database for oidc and manage | |mariadb |MariaDB databases for engine and teams | diff --git a/core/docker-compose.yml b/core/docker-compose.yml index 445c481..d189fc1 100644 --- a/core/docker-compose.yml +++ b/core/docker-compose.yml @@ -83,8 +83,9 @@ services: coreconextdev: healthcheck: test: ["CMD", "curl", "--fail", "-s", "http://localhost/health"] + interval: 1s timeout: 5s - retries: 10 + retries: 120 hostname: engine.docker extra_hosts: - "host.docker.internal:host-gateway"