Docker

Setup

  1. Option: Use docker-compose (recommended)

    1. 1. Checkout the docker-compose file from github: https://github.com/labsai/EDDI/blob/master/docker-compose.yml‚Äč

      1. 2. Run Docker Command:docker-compose up

  2. Option: Launch docker containers manually

Start a MongoDB instance using the MongoDB docker image:

docker run --name mongodb -e MONGODB_DBNAME=eddi -d mongo

Start EDDI:

No Authentication

docker run --name eddi -e "EDDI_ENV=production" --link mongodb:mongodb -p 7070:7070 -p 7443:7443 -d labsai/eddi

Basic Authentication Enabled

(default username: eddi , default password: labsai):

docker run --name eddi -e "EDDI_ENV=production" -e "EDDI_JAVA_ENV_BASIC_AUTH_ENABLED: webServer.securityHandlerType=basic" --link mongodb:mongodb -p 7070:7070 -p 7443:7443 -d labsai/eddi

Basic Authentication Enabled (set credentials)

(set credentials on first run):

docker run --name eddi -e "EDDI_ENV=production" -e "EDDI_JAVA_ENV_BASIC_AUTH_ENABLED: webServer.securityHandlerType=basic" -e "EDDI_JAVA_ENV_BASIC_AUTH_USERNAME: webServer.webServer.basicAuth.defaultUsername=eddi" -e "EDDI_JAVA_ENV_BASIC_AUTH_PASSWORD: webServer.webServer.basicAuth.defaultPassword=labsai" --link mongodb:mongodb -p 7070:7070 -p 7443:7443 -d labsai/eddi

Keycloak Enabled

(default authenticates over auth.labs.ai keycloak instance):

docker run --name eddi -e "EDDI_ENV=production" -e "EDDI_JAVA_ENV_KEYCLOAK_ENABLED: webServer.securityHandlerType=keycloak" --link mongodb:mongodb -p 7070:7070 -p 7443:7443 -d labsai/eddi

When E.D.D.I is up and running: