Jobs on Compass often timeout
[releng.git] / utils / test / vnfcatalogue / VNF_Catalogue / docker-compose.yml
1 ##################################################################
2 #   Docker-Compose for setting up and running vnf_catalogue webapp
3 ##################################################################
4 # Purpose: To setup and run vnf_catalogue webapp
5 # Usage: docker-compose up
6 #
7 # The webapp would be accessible at ip_address:3000
8 #
9 # Maintained by Kumar Rishabh :: penguinRaider
10 ##
11 # All rights reserved. This program and the accompanying materials
12 # are made available under the terms of the Apache License, Version 2.0
13 # which accompanies this distribution, and is available at
14 # http://www.apache.org/licenses/LICENSE-2.0
15 #
16
17 version: "2"
18 services:
19     mysql:
20     # mysql service built on top of vanilla mysql container.
21     # Defines mysql credentials.
22
23         image: mysql
24         container_name: vnf_catalogue_database
25         environment:
26             - MYSQL_USER=vnf_user
27             - MYSQL_PASSWORD=vnf_password
28             - MYSQL_DATABASE=vnf_catalogue
29             - MYSQL_ROOT_PASSWORD=root
30     vnf_catalogue:
31     # The vnf_catalogue webapp service.
32         build: .
33         container_name: vnf_catalogue_webapp
34         depends_on:
35             - mysql
36         # Port on which the node.js server would be exposed <host:container>
37         # To change host port to say 80 use 80:3000
38
39         ports:
40             - "3000:3000"
41     vnf_catalogue_migrate:
42     # We define another service for database migration. This service will
43     # migrate the database schema.(Dockerfile resides in migration
44     # directory).
45
46         build: ./migration
47         container_name: vnf_catalogue_migrate
48         depends_on:
49             - mysql