summaryrefslogtreecommitdiffstats
path: root/VNF_Catalogue/docker-compose.yml
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-07-21 06:20:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-21 06:20:45 +0000
commit4eca0440aee462f842567d5ef8b8796c27f4dd1b (patch)
tree63935d03fb32782b0cefce01b7531cf65449d23e /VNF_Catalogue/docker-compose.yml
parentd923180e4af2612361dd7d4bf1627092a4d552d8 (diff)
parent1f6b18a1974c1b53a079b21b6be39af86deb2432 (diff)
Merge "VNF_Catalogue Codebase"
Diffstat (limited to 'VNF_Catalogue/docker-compose.yml')
-rw-r--r--VNF_Catalogue/docker-compose.yml80
1 files changed, 80 insertions, 0 deletions
diff --git a/VNF_Catalogue/docker-compose.yml b/VNF_Catalogue/docker-compose.yml
new file mode 100644
index 00000000..2efba431
--- /dev/null
+++ b/VNF_Catalogue/docker-compose.yml
@@ -0,0 +1,80 @@
+##################################################################
+# 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
+ volumes:
+ - ./persistent_data/database/mysql:/var/lib/mysql
+ phpmyadmin:
+ image: phpmyadmin/phpmyadmin
+ links:
+ - "mysql:mysql"
+ ports:
+ - "8181:80"
+ environment:
+ PMA_ARBITRARY: 1
+ MYSQL_USERNAME: vnf_user
+ MYSQL_PASSWORD: vnf_password
+ MYSQL_ROOT_PASSWORD: root
+ #- MYSQL_USERNAME=root
+ minio:
+ image: minio/minio
+ environment:
+ - MINIO_ACCESS_KEY=vnf_minio
+ - MINIO_SECRET_KEY=vnf_minio
+ ports:
+ - "9000:9000"
+ volumes:
+ - ./persistent_data/minio/images:/export
+ command: server /export
+ vnf_catalogue:
+ # The vnf_catalogue webapp service.
+ build: .
+ container_name: vnf_catalogue_webapp
+ depends_on:
+ - mysql
+ - minio
+ # 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"
+ volumes:
+ - ./persistent_data/nodejs_server/public_images/:/usr/src/app/public/uploads
+ 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
+ vnf_catalogue_cronjob:
+ build: ./cronjob
+ container_name: vnf_catalogue_cronjob
+ depends_on:
+ - mysql