Https API by APPLCM
[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       CERTIFICATE_PATH: ""
57       KEY_PATH: ""
58     ports:
59       - '28081:8081'
60     expose:
61       - '8081'
62     logging:
63       driver: "json-file"
64       options:
65         max-size: "30m"
66         max-file: "5"
67   #################################################################################
68   helm-plugin:
69     network_mode: bridge
70     image: ealtedge/helmplugin:latest
71     restart: always
72     container_name: helmplugin
73     environment:
74       HELM_PLUGIN_PORT: '50051'
75       # Log file path, also to match dockerfile
76       LOGFILE_PATH: "/go/release/logfile"
77       LOGGER_LEVEL: "info"
78       CERTIFICATE_PATH: ""
79       KEY_PATH: ""
80       # Temp chart file path, to be created in dockerfile
81       CHART_PATH: "/go/release/charts/"
82       # Kubeconfig based directory path, to be created in dockerfile, to hold kubeconfig of hosts with <host-ip>
83       KUBECONFIG_DIR_PATH: "/go/release/kubeconfig/"
84       # Presently all application to be deployed in same namespace, in future it can be an input while app creation
85       RELEASE_NAMESPACE: "default"
86     ports:
87       - '50051:50051'
88     expose:
89       - '50051'
90     logging:
91       driver: "json-file"
92       options:
93         max-size: "30m"
94         max-file: "5"
95 # yamllint enable