Skip to content

Commit

Permalink
Fix initialisation of devconf core
Browse files Browse the repository at this point in the history
  • Loading branch information
pablothedude committed Jan 16, 2025
1 parent 66d0741 commit 4d80f6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 8 additions & 6 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 |
Expand Down
3 changes: 2 additions & 1 deletion core/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4d80f6c

Please sign in to comment.