Fixing test artifacts
[ealt-edge.git] / mecm / mepm / applcm / resources / docker-compose.yaml
1 # yamllint disable
2 version: '3.3'
3
4 networks:
5   bridge:
6     external: true
7
8 volumes:
9   my-db:
10
11 services:
12   db:
13     network_mode: bridge
14     image: mysql:5.7
15     environment:
16       MYSQL_DATABASE: 'db'
17       MYSQL_USER: 'root'
18       MYSQL_PASSWORD: 'password'
19       # Password for root access
20       MYSQL_ROOT_PASSWORD: 'password'
21     ports:
22       - '3306:3306'
23     expose:
24       - '3306'
25     volumes:
26       - my-db:/var/lib/mysql
27     logging:
28       driver: "json-file"
29       options:
30         max-size: "30m"
31         max-file: "5"
32   #################################################################################
33   applcm-broker:
34     network_mode: bridge
35     image: ealtedge/applcm-broker:latest
36     depends_on:
37       - db
38       - helm-plugin
39     links:
40       - db:dbhost
41       - helm-plugin:helm.plugin
42     restart: always
43     container_name: applcm-broker
44     environment:
45       MYSQL_DATABASE: 'db'
46       MYSQL_USER: 'root'
47       MYSQL_PASSWORD: 'password'
48       MYSQL_ROOT_PASSWORD: 'password'
49       HELM_PLUGIN_PORT: '50051'
50       KUBERNETES_PLUGIN_PORT: '50052'
51       LOGFILE_PATH: "/go/release/logfile"
52       LOGGER_LEVEL: "info"
53       ADDRESS: "0.0.0.0:8081"
54       PACKAGE_PATH: "/go/release/application/packages/"
55       PACKAGE_ARTIFACT_PATH: "/Artifacts/Deployment/"
56     ports:
57       - '28081:8081'
58     expose:
59       - '8081'
60     logging:
61       driver: "json-file"
62       options:
63         max-size: "30m"
64         max-file: "5"
65   #################################################################################
66   helm-plugin:
67     network_mode: bridge
68     image: ealtedge/helmplugin:latest
69     restart: always
70     container_name: helmplugin
71     environment:
72       HELM_PLUGIN_PORT: '50051'
73       # Log file path, also to match dockerfile
74       LOGFILE_PATH: "/go/release/logfile"
75       LOGGER_LEVEL: "info"
76       CERTIFICATE_PATH: ""
77       KEY_PATH: ""
78       # Temp chart file path, to be created in dockerfile
79       CHART_PATH: "/go/release/charts/"
80       # Kubeconfig based directory path, to be created in dockerfile, to hold kubeconfig of hosts with <host-ip>
81       KUBECONFIG_DIR_PATH: "/go/release/kubeconfig/"
82       # Presently all application to be deployed in same namespace, in future it can be an input while app creation
83       RELEASE_NAMESPACE: "default"
84     ports:
85       - '50051:50051'
86     expose:
87       - '50051'
88     logging:
89       driver: "json-file"
90       options:
91         max-size: "30m"
92         max-file: "5"
93 # yamllint enable