Running CTIMS with docker
To deploy CTIMS using Docker, follow these steps:
- Clone the repository 
- Make a copy of the example environment file: 
- cp .env.example .env
- Modify the .env file with the necessary keycloak environment variables. 
- KEYCLOAK_CLIENT_SECRET is the keycloak client secret 
- NEXT_AUTH_API_URL is the authentication through next.js authentication, the value should point to <name of backend image>:port/api - Example: - NEXT_AUTH_API_URL=http://backend:3333/api for working with docker 
- NEXT_AUTH_API_URL=http://localhost:3333/api for local development 
 
 
- PRISMA_FIELD_ENCRYPTION_KEY is the key used for encrypting the contents of the database so that trial information is kept secure. 
- Build the docker images using `docker-compose build --no-cache` 
- Run the Docker containers using `docker-compose up` 
- Access CTIMS in your browser at `http://localhost:3000`. 
Last updated
