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}
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}
61 - ./portal.cql:/docker-entrypoint-initdb.d/zzz_portal.cql
62 - ./portalsdk.cql:/docker-entrypoint-initdb.d/zzz_portalsdk.cql
67 condition: service_healthy
69 # Config files may use hostname "portal-zk"
71 image: ${ZK_IMG_NAME}:${PORTAL_TAG}
77 # The app config file uses the docker name above
79 image: ${WMS_IMG_NAME}:${PORTAL_TAG}
86 condition: service_healthy
88 - ${PROPS_DIR}/ONAPWIDGETMS/application.properties:/application.properties
89 - ${PROPS_DIR}/ONAPWIDGETMS/application.yml:/application.yml
96 image: ${EP_IMG_NAME}:${PORTAL_TAG}
108 condition: service_healthy
110 condition: service_started
112 - ${PROPS_DIR}/ONAPPORTAL/system.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/conf/system.properties
113 - ${PROPS_DIR}/ONAPPORTAL/fusion.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/fusion/conf/fusion.properties
114 - ${PROPS_DIR}/ONAPPORTAL/portal.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/portal.properties
115 - ${PROPS_DIR}/ONAPPORTAL/music.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/music.properties
116 - ${PROPS_DIR}/ONAPPORTAL/openid-connect.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/openid-connect.properties
117 - ${PROPS_DIR}/ONAPPORTAL/logback.xml:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/logback.xml
118 - ${LOGS_DIR}:/opt/apache-tomcat-8.0.37/logs
120 - /start-apache-tomcat.sh
121 # see comments in .env file
130 image: ${SDK_IMG_NAME}:${PORTAL_TAG}
140 condition: service_healthy
142 - ${PROPS_DIR}/ONAPPORTALSDK/fusion.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties
143 - ${PROPS_DIR}/ONAPPORTALSDK/system.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/conf/system.properties
144 - ${PROPS_DIR}/ONAPPORTALSDK/portal.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/classes/portal.properties
145 - ${PROPS_DIR}/ONAPPORTALSDK/music.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/classes/music.properties
146 - ${PROPS_DIR}/ONAPPORTALSDK/logback.xml:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/classes/logback.xml
147 - ${LOGS_DIR}:/opt/apache-tomcat-8.0.37/logs
149 - /start-apache-tomcat.sh