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
36 test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
40 # The app config file uses the docker name above
42 image: ${WMS_IMG_NAME}:${PORTAL_TAG}
49 condition: service_healthy
51 - ${PROPS_DIR}/ONAPWIDGETMS/application.properties:/application.properties
57 # Environment variables here CANNOT override the database URL because
58 # two apps use identical configuration keys with different values
60 image: ${EP_IMG_NAME}:${PORTAL_TAG}
70 condition: service_healthy
72 condition: service_started
74 - ${PROPS_DIR}/ONAPPORTAL/system.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/conf/system.properties
75 - ${PROPS_DIR}/ONAPPORTAL/fusion.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/fusion/conf/fusion.properties
76 - ${PROPS_DIR}/ONAPPORTAL/portal.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/portal.properties
77 - ${PROPS_DIR}/ONAPPORTAL/openid-connect.properties:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/openid-connect.properties
78 - ${PROPS_DIR}/ONAPPORTAL/logback.xml:${WEBAPPS_DIR}/ONAPPORTAL/WEB-INF/classes/logback.xml
79 - ${PROPS_DIR}/ONAPPORTALSDK/fusion.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/fusion/conf/fusion.properties
80 - ${PROPS_DIR}/ONAPPORTALSDK/system.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/conf/system.properties
81 - ${PROPS_DIR}/ONAPPORTALSDK/portal.properties:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/classes/portal.properties
82 - ${PROPS_DIR}/ONAPPORTALSDK/logback.xml:${WEBAPPS_DIR}/ONAPPORTALSDK/WEB-INF/classes/logback.xml
83 - ${LOGS_DIR}:/opt/apache-tomcat-8.0.37/logs
86 # see comments in .env file