-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
57 lines (57 loc) · 1.29 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
#/*********************************************************************
# Copyright (c) Intel Corporation 2020
# SPDX-License-Identifier: Apache-2.0
#**********************************************************************/
version: '3.4'
services:
rps:
image: rps
networks:
- openamtnetwork1
ports:
- 8081:8081
build:
context: .
dockerfile: ./Dockerfile
environment:
RPS_VAULT_ADDRESS: http://vault:8200
RPS_CONNECTION_STRING: postgresql://postgresadmin:admin123@db:5432/rpsdb
RPS_LOG_LEVEL: 'silly'
depends_on:
- db
- vault
- consul
db:
image: postgres
networks:
- openamtnetwork1
restart: always
ports:
- 5432:5432
command: '-c max_connections=200'
environment:
POSTGRES_DB: rpsdb
POSTGRES_USER: postgresadmin
POSTGRES_PASSWORD: admin123
volumes:
- ./data:/docker-entrypoint-initdb.d
vault:
image: hashicorp/vault
networks:
- openamtnetwork1
ports:
- 8200:8200
environment:
VAULT_DEV_ROOT_TOKEN_ID: myroot
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
cap_add:
- IPC_LOCK
consul:
image: hashicorp/consul
networks:
- openamtnetwork1
ports:
- 8500:8500
networks:
openamtnetwork1:
driver: 'bridge'