Edit docker-compose.yml
This is an example of a docker-compose.yml file as of version 4.3.3
version: '3.7'
networks:
iriusrisk-frontend:
iriusrisk-backend:
services:
nginx:
ports:
- "80:80"
- "443:443"
environment:
- NG_SERVER_NAME=youririusriskendpoint.com
image: continuumsecurity/iriusrisk-prod:nginx
container_name: iriusrisk-nginx
networks:
- iriusrisk-frontend
mem_reservation: 50M
mem_limit: 200M
cpu_shares: 128
restart: unless-stopped
volumes:
- "./cert.pem:/etc/nginx/ssl/star_iriusrisk_com.crt:ro"
- "./key.pem:/etc/nginx/ssl/star_iriusrisk_com.key:ro"
tomcat:
environment:
- IRIUS_DB_URL=jdbc\:postgresql\://172.17.0.1\:5432/iriusprod?user\=iriusprod&password\=**************
- IRIUS_EDITION=saas
- IRIUS_EXT_URL=https\://youririusriskendpoint.com
- grails_env=production
- STARTLEFT_URL=http://startleft:8081/api/v1/startleft/iac
image: continuumsecurity/iriusrisk-prod:tomcat-4
container_name: iriusrisk-tomcat
networks:
- iriusrisk-frontend
- iriusrisk-backend
mem_reservation: 2G
cpu_shares: 1024
# uncomment the lines below to add custom scripts
# place the "*.sh" files in scripts directory and they will be executed before IriusRisk start
# volumes:
# - "./scripts/:/etc/irius/scripts.d/"
startleft:
environment:
- IRIUS_SERVER=http://tomcat:8080
image: continuumsecurity/iriusrisk-prod:startleft
container_name: iriusrisk-startleft
command: ["uvicorn", "startleft.api.fastapi_server:webapp", "--host", "0.0.0.0", "--port", "8081"]
networks:
- iriusrisk-backend
You will want to edit the tomcat section, and add something like this:
- CATALINA_OPTS=-DIRIUS_SESSION_TIME_OUT=720
tomcat:
environment:
- IRIUS_DB_URL=jdbc\:postgresql\://172.17.0.1\:5432/iriusprod?user\=iriusprod&password\=*****************
- IRIUS_EDITION=saas
- IRIUS_EXT_URL=https\://youririusriskendpoint.com
- grails_env=production
- STARTLEFT_URL=http://startleft:8081/api/v1/startleft/iac
- CATALINA_OPTS=-DIRIUS_SESSION_TIME_OUT=720
image: continuumsecurity/iriusrisk-prod:tomcat-4
container_name: iriusrisk-tomcat
networks:
- iriusrisk-frontend
- iriusrisk-backend
mem_reservation: 2G
cpu_shares: 1024
The value (720) is in minutes.
Comments
0 comments
Please sign in to leave a comment.