summaryrefslogtreecommitdiffstats
path: root/utils/test/vnfcatalogue/VNF_Catalogue/docker-compose.yml
diff options
context:
space:
mode:
authorKumar Rishabh <shailrishabh@gmail.com>2017-03-28 01:14:31 +0530
committerKumar Rishabh <shailrishabh@gmail.com>2017-03-28 01:26:20 +0530
commitb3e815f76055b4a5743cbcecf79bf2a266a2aa9b (patch)
tree7d343531252e3eb60dc4d36bd51590f0ee19f59f /utils/test/vnfcatalogue/VNF_Catalogue/docker-compose.yml
parent2bfc153956db44a47d4c58fa4bc4afc1c3b8a701 (diff)
Add docker-compose files and requirements
This adds docker-compose file to define a multi-container vnf_catalogue service alongwith helper service to migrate the schema. Requires docker-compose installation To run :: docker-compose up The webapp by default would be accessible at ip_address:3000 Change-Id: I32daf7f76fb1d82116545187395cd96535c94541 Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Diffstat (limited to 'utils/test/vnfcatalogue/VNF_Catalogue/docker-compose.yml')
-rw-r--r--utils/test/vnfcatalogue/VNF_Catalogue/docker-compose.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/utils/test/vnfcatalogue/VNF_Catalogue/docker-compose.yml b/utils/test/vnfcatalogue/VNF_Catalogue/docker-compose.yml
new file mode 100644
index 000000000..a0ddfa480
--- /dev/null
+++ b/utils/test/vnfcatalogue/VNF_Catalogue/docker-compose.yml
@@ -0,0 +1,49 @@
+##################################################################
+# Docker-Compose for setting up and running vnf_catalogue webapp
+##################################################################
+# Purpose: To setup and run vnf_catalogue webapp
+# Usage: docker-compose up
+#
+# The webapp would be accessible at ip_address:3000
+#
+# Maintained by Kumar Rishabh :: penguinRaider
+##
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+
+version: "2"
+services:
+ mysql:
+ # mysql service built on top of vanilla mysql container.
+ # Defines mysql credentials.
+
+ image: mysql
+ container_name: vnf_catalogue_database
+ environment:
+ - MYSQL_USER=vnf_user
+ - MYSQL_PASSWORD=vnf_password
+ - MYSQL_DATABASE=vnf_catalogue
+ - MYSQL_ROOT_PASSWORD=root
+ vnf_catalogue:
+ # The vnf_catalogue webapp service.
+ build: .
+ container_name: vnf_catalogue_webapp
+ depends_on:
+ - mysql
+ # Port on which the node.js server would be exposed <host:container>
+ # To change host port to say 80 use 80:3000
+
+ ports:
+ - "3000:3000"
+ vnf_catalogue_migrate:
+ # We define another service for database migration. This service will
+ # migrate the database schema.(Dockerfile resides in migration
+ # directory).
+
+ build: ./migration
+ container_name: vnf_catalogue_migrate
+ depends_on:
+ - mysql