Some bug fixes
[ealt-edge.git] / mecm / mepm / applcm / resources / test / 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   mecmdb:
13     network_mode: bridge
14     image: postgres:9.6
15     environment:
16       POSTGRES_DB: 'mecmdb'
17       POSTGRES_USER: 'root'
18       POSTGRES_PASSWORD: 'password'
19       POSTGRES_ROOT_PASSWORD: 'password'
20     ports:
21       - '5432:5432'
22     expose:
23       - '5432'
24     volumes:
25       - my-db:/var/lib/postgresql/data
26     logging:
27       driver: "json-file"
28       options:
29         max-size: "30m"
30         max-file: "5"
31   #################################################################################
32   applcm-broker:
33     network_mode: bridge
34     image: ealtedge/applcm-broker:latest
35     depends_on:
36       - mecmdb
37       - helm-plugin
38     links:
39       - mecmdb:mecmdb
40       - helm-plugin:helmplugin
41     restart: always
42     container_name: applcm-broker
43     environment:
44       POSTGRES_DATABASE: 'mecmdb'
45       DBHOST: 'mecmdb'
46       POSTGRES_USER: 'root'
47       POSTGRES_PASSWORD: 'password'
48       POSTGRES_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