1 # docker-compose for ONAP portal containers: database, microservice, portal apps.
2 # Relies on .env file, which CANNOT be specified via command-line option
3 # Works in multiple environments; does not pull from a Nexus registry.
4 # Exposes the portal apps docker (but not DB nor WMS dockers) on the host network.
5 # Images must be pulled from ONAP Nexus registry after logging in like this:
6 # docker login -u USER -p PASS nexus3.onap.org:10001
7 # Uses healthcheck feature added in docker-compose v2.1
14 image: ${CLI_IMG_NAME}:${PORTAL_TAG}
16 OPEN_CLI_MODE: 'daemon'
23 # Config files may use hostname "portal-db"
25 image: ${DB_IMG_NAME}:${PORTAL_TAG}
27 MYSQL_ROOT_PASSWORD: 'Aa123456'
31 # Just specify a path and let the Engine create a volume
33 # Inject the onboarding script at start time
34 - ./Apps_Users_OnBoarding_Script.sql:/docker-entrypoint-initdb.d/zzz_apps_users_onboarding.sql
38 test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
42 # Config files may use hostname "portal-cassandra"
44 image: ${CDR_IMG_NAME}:${PORTAL_TAG}
48 - JVM_OPTS=-Xmx2536m -Xms2536m
62 - ./portal.cql:/docker-entrypoint-initdb.d/zzz_portal.cql
63 - ./portalsdk.cql:/docker-entrypoint-initdb.d/zzz_portalsdk.cql
68 condition: service_healthy
70 # Config files may use hostname "portal-zk"
72 image: ${ZK_IMG_NAME}:${PORTAL_TAG}
78 # The app config file uses the docker name above
80 image: ${WMS_IMG_NAME}:${PORTAL_TAG}
87 condition: service_healthy
89 - ${PROPS_DIR}/ONAPWIDGETMS/application.properties:/application.properties
90 - ${PROPS_DIR}/ONAPWIDGETMS/application.yml:/application.yml
97 image: ${EP_IMG_NAME}:${PORTAL_TAG}
110 condition: service_healthy
112 condition: service_started
114 - ${PROPS_DIR}/ONAPPORTAL/system.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/conf/system.properties
115 - ${PROPS_DIR}/ONAPPORTAL/fusion.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/fusion/conf/fusion.properties
116 - ${PROPS_DIR}/ONAPPORTAL/portal.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/portal.properties
117 - ${PROPS_DIR}/ONAPPORTAL/music.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/music.properties
118 - ${PROPS_DIR}/ONAPPORTAL/openid-connect.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/openid-connect.properties
119 - ${PROPS_DIR}/ONAPPORTAL/logback.xml:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/logback.xml
120 - ./${TOMCAT_TRUST}:${TOMCAT_DIR}/${TOMCAT_TRUST}
121 - ./${TOMCAT_KEY}:${TOMCAT_DIR}/${TOMCAT_KEY}
122 - ${LOGS_DIR}:${TOMCAT_DIR}/logs
124 - /start-apache-tomcat.sh
125 # see comments in .env file
133 - CATALINA_OPTS=-Xmx1536m -Xms1536m
134 - javax.net.ssl.keyStore=${TOMCAT_DIR}/${TOMCAT_TRUST}
135 - javax.net.ssl.keyStorePassword=${CERT_PWD}
136 - javax.net.ssl.trustStore=${TOMCAT_DIR}/${TOMCAT_TRUST}
137 - javax.net.ssl.trustStorePassword=${CERT_PWD}
139 image: ${SDK_IMG_NAME}:${PORTAL_TAG}
149 condition: service_healthy
151 - ${PROPS_DIR}/ONAPPORTALSDK/fusion.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties
152 - ${PROPS_DIR}/ONAPPORTALSDK/system.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/conf/system.properties
153 - ${PROPS_DIR}/ONAPPORTALSDK/portal.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/classes/portal.properties
154 - ${PROPS_DIR}/ONAPPORTALSDK/music.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/classes/music.properties
155 - ${PROPS_DIR}/ONAPPORTALSDK/logback.xml:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/classes/logback.xml
156 - ${LOGS_DIR}:${TOMCAT_DIR}/logs
158 - /start-apache-tomcat.sh
162 - CATALINA_OPTS=-Xmx1536m -Xms1536m