blob: d32a4050748b51d1cbf33e704fb6dfcd7c59d636 [file] [log] [blame]
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04001# docker-compose for ONAP portal containers: database, microservice, portal apps.
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04002# Relies on .env file in current directory.
Christopher Lott (cl778h)51d83152017-09-28 11:18:14 -04003# 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
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04007
8version: '2.0'
9
10services:
11
Kanagaraj Manickam k00365106bfbe3352017-08-30 09:33:23 +053012 cli:
13 image: onap/cli:${PORTAL_TAG}
14 environment:
Kanagaraj Manickam k003651063ad7f7b2017-09-11 09:16:36 +053015 CLI_MODE: 'daemon'
Kanagaraj Manickam k00365106bfbe3352017-08-30 09:33:23 +053016 expose:
17 - 80
18 ports:
19 - 8080:80
20 logging:
21 driver: json-file
22
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040023 # Config files may use hostname "portal-db"
24 portal-db:
25 image: ${DB_IMG_NAME}:${PORTAL_TAG}
26 environment:
27 MYSQL_ROOT_PASSWORD: 'Aa123456'
28 expose:
29 - 3306
30 volumes:
31 # Just specify a path and let the Engine create a volume
32 - /var/lib/mysql
33 logging:
34 driver: json-file
35
36 # An environment variable here CAN override the database URL;
Kanagaraj Manickam k00365106bfbe3352017-08-30 09:33:23 +053037 # instead the value in the config file uses hostname from above
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040038 portal-wms:
39 image: ${WMS_IMG_NAME}:${PORTAL_TAG}
40 expose:
41 - 8082
42 links:
43 - portal-db
44 depends_on:
45 - portal-db
46 volumes:
47 - ${PROJECT_DIR}/etc/ECOMPWIDGETMS/application.properties:/application.properties
48 command:
49 - /wait-for.sh
50 - -t
Christopher Lott (cl778h)fc325ed2017-09-08 09:12:04 -040051 - "180"
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040052 - portal-db:3306
53 - --
54 - /start-wms-cmd.sh
55 logging:
56 driver: json-file
57
58 # Environment variables here CANNOT override the database URL because
59 # two apps use identical configuration keys with different values
60 portal-apps:
61 image: ${EP_IMG_NAME}:${PORTAL_TAG}
62 expose:
63 - 8989
64 ports:
65 - 8989:8080
66 - 8010:8009
67 - 8006:8005
68 links:
69 - portal-db
70 - portal-wms
71 depends_on:
72 - portal-db
73 - portal-wms
74 volumes:
75 - ${PROJECT_DIR}/etc/ECOMPPORTALAPP/system.properties:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/conf/system.properties
76 - ${PROJECT_DIR}/etc/ECOMPPORTALAPP/fusion.properties:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/fusion/conf/fusion.properties
77 - ${PROJECT_DIR}/etc/ECOMPPORTALAPP/portal.properties:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/classes/portal.properties
78 - ${PROJECT_DIR}/etc/ECOMPPORTALAPP/openid-connect.properties:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/classes/openid-connect.properties
79 - ${PROJECT_DIR}/etc/ECOMPPORTALAPP/logback.xml:${WEBAPPS_DIR}/ECOMPPORTAL/WEB-INF/classes/logback.xml
80 - ${PROJECT_DIR}/etc/ECOMPSDKAPP/fusion.properties:${WEBAPPS_DIR}/ECOMPSDKAPP/WEB-INF/fusion/conf/fusion.properties
81 - ${PROJECT_DIR}/etc/ECOMPSDKAPP/system.properties:${WEBAPPS_DIR}/ECOMPSDKAPP/WEB-INF/conf/system.properties
82 - ${PROJECT_DIR}/etc/ECOMPSDKAPP/portal.properties:${WEBAPPS_DIR}/ECOMPSDKAPP/WEB-INF/classes/portal.properties
83 - ${PROJECT_DIR}/etc/ECOMPDBCAPP/system.properties:${WEBAPPS_DIR}/ECOMPDBCAPP/WEB-INF/conf/system.properties
84 - ${PROJECT_DIR}/etc/ECOMPDBCAPP/portal.properties:${WEBAPPS_DIR}/ECOMPDBCAPP/WEB-INF/classes/portal.properties
85 - ${PROJECT_DIR}/etc/ECOMPDBCAPP/dbcapp.properties:${WEBAPPS_DIR}/ECOMPDBCAPP/WEB-INF/dbcapp/dbcapp.properties
86 - ${PROJECT_DIR}/etc/ECOMPDBCAPP/fusion.properties:${WEBAPPS_DIR}/ECOMPDBCAPP/WEB-INF/fusion/conf/fusion.properties
Kanagaraj Manickam k00365106bfbe3352017-08-30 09:33:23 +053087 - ${PROJECT_DIR}/portal-apps-logs:/opt/apache-tomcat-8.0.37/logs
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040088 command:
89 - /wait-for.sh
90 - -t
Christopher Lott (cl778h)fc325ed2017-09-08 09:12:04 -040091 - "180"
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040092 - portal-db:3306
93 - --
94 - /start-apps-cmd.sh
95 logging:
96 driver: json-file