-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
58 lines (58 loc) · 1.36 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#/*********************************************************************
# Copyright (c) Intel Corporation 2020
# SPDX-License-Identifier: Apache-2.0
#**********************************************************************/
version: '3'
services:
mps:
image: mps
networks:
- openamtnetwork
ports:
- 3000:3000
depends_on:
- 'vault'
- 'db'
build:
context: .
dockerfile: ./Dockerfile
environment:
MPS_CONNECTION_STRING: 'postgresql://postgresadmin:admin123@db:5432/mpsdb'
MPS_VAULT_ADDRESS: 'http://vault:8200'
MPS_WEB_AUTH_ENABLED: 'true'
MPS_WEB_ADMIN_USER: 'standalone'
MPS_WEB_ADMIN_PASSWORD: 'G@ppm0ym'
MPS_JWT_SECRET: 'mpssecret'
db:
image: postgres
networks:
- openamtnetwork
ports:
- 5432:5432
restart: always
environment:
POSTGRES_USER: postgresadmin
POSTGRES_PASSWORD: admin123
volumes:
- ./data:/docker-entrypoint-initdb.d
vault:
image: hashicorp/vault
networks:
- openamtnetwork
ports:
- '8200:8200'
environment:
VAULT_DEV_ROOT_TOKEN_ID: myroot
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
cap_add:
- IPC_LOCK
consul:
restart: always
image: hashicorp/consul
networks:
- openamtnetwork
ports:
- 8500:8500
networks:
openamtnetwork:
driver: 'bridge'