-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
123 lines (123 loc) · 4.65 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: "3.3"
services:
envoy:
image: envoyproxy/envoy:v1.21.1
command: envoy -c /config/envoy.json
volumes:
- ${BOOTSTRAP_ENVOY_FILE:-./config/envoy.json}:/config/envoy.json
ports:
- "10000:10000"
mysql-server:
image: mysql:8.0
volumes:
- mysql-db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DCS_DATABASE}
nats-server:
image: nats:2.7-alpine
ports:
- "8222:8222"
command: -c /config/server.conf
volumes:
- ./config/nats-server.conf:/config/server.conf
- ./pki/nats-server/server.crt:/config/pki/server.crt
- ./pki/nats-server/server.key:/config/pki/server.key
- ./pki/root.crt:/config/pki/root.crt
pdp:
build: ./services
command: pdp-server
volumes:
- ${BOOTSTRAP_CONFIG_FILE:-./config/gateway.json}:/config/gateway.json
- ${BOOTSTRAP_BASIC_AUTH_FILE:-./config/gateway-auth-basic.txt}:/auth/basic-auth-credentials.txt
- ./policies:/policies
- ./pki/pdp/server.crt:/config/pki/server.crt
- ./pki/pdp/server.key:/config/pki/server.key
- ./pki/root.crt:/config/pki/root.crt
environment:
GLOBAL_CONFIG_PATH: /config/gateway.json
PDP_POLICY_PATH: /policies
SERVICE_TLS_CERT: /config/pki/server.crt
SERVICE_TLS_KEY: /config/pki/server.key
SERVICE_TLS_ROOT_CA: /config/pki/root.crt
PDS_HOST: pds
PDS_PORT: 9002
PDP_KAFKA_PONGO_BOOTSTRAP_SERVERS: kafka1-host:9092
PDP_KAFKA_PONGO_SCHEMA_REGISTRY_URL: http://kafka1-host:8081
APP_SERVICE_OBS_ENABLED: ${PDP_SERVICE_OBS_ENABLED:-true}
APP_SERVICE_NAME: ${PDP_SERVICE_NAME:-pdp}
APP_SERVICE_ENV: ${PDP_SERVICE_ENV:-development}
APP_OTEL_EXPORTER_OTLP_ENDPOINT: ${COMMON_OTEL_EXPORTER_OTLP_ENDPOINT:-localhost:4317}
extra_hosts:
kafka1-host: ${KAFKA_PONGO_HOST}
tap:
build: ./services
command: tap-server
volumes:
- ${BOOTSTRAP_CONFIG_FILE:-./config/gateway.json}:/config/gateway.json
- ./pki/tap/server.crt:/config/pki/server.crt
- ./pki/tap/server.key:/config/pki/server.key
- ./pki/root.crt:/config/pki/root.crt
environment:
GLOBAL_CONFIG_PATH: /config/gateway.json
SERVICE_TLS_CERT: /config/pki/server.crt
SERVICE_TLS_KEY: /config/pki/server.key
SERVICE_TLS_ROOT_CA: /config/pki/root.crt
APP_SERVICE_OBS_ENABLED: ${TAP_SERVICE_OBS_ENABLED:-true}
APP_SERVICE_NAME: ${TAP_SERVICE_NAME:-tap}
APP_SERVICE_ENV: ${TAP_SERVICE_ENV:-development}
APP_OTEL_EXPORTER_OTLP_ENDPOINT: ${COMMON_OTEL_EXPORTER_OTLP_ENDPOINT:-localhost:4317}
dcs:
depends_on:
- mysql-server
build: ./services
command: dcs-server
extra_hosts:
opensearch: ${OPENSEARCH_HOST:-opensearch}
volumes:
- ${BOOTSTRAP_CONFIG_FILE:-./config/gateway.json}:/config/gateway.json
- ./pki/dcs/server.crt:/config/pki/server.crt
- ./pki/dcs/server.key:/config/pki/server.key
- ./pki/root.crt:/config/pki/root.crt
environment:
GLOBAL_CONFIG_PATH: /config/gateway.json
SERVICE_TLS_CERT: /config/pki/server.crt
SERVICE_TLS_KEY: /config/pki/server.key
SERVICE_TLS_ROOT_CA: /config/pki/root.crt
MYSQL_SERVER_HOST: mysql-server
MYSQL_SERVER_PORT: 3306
MYSQL_DATABASE: ${MYSQL_DCS_DATABASE}
MYSQL_USER: ${MYSQL_DCS_USER}
MYSQL_PASSWORD: ${MYSQL_DCS_PASSWORD}
APP_SERVICE_OBS_ENABLED: ${DCS_SERVICE_OBS_ENABLED:-true}
APP_SERVICE_NAME: ${DCS_SERVICE_NAME:-dcs}
APP_SERVICE_ENV: ${DCS_SERVICE_ENV:-development}
APP_OTEL_EXPORTER_OTLP_ENDPOINT: ${COMMON_OTEL_EXPORTER_OTLP_ENDPOINT:-localhost:4317}
pds:
depends_on:
- mysql-server
- dcs
build: ./services
command: pds-server
volumes:
- ${BOOTSTRAP_CONFIG_FILE:-./config/gateway.json}:/config/gateway.json
- ./pki/pds/server.crt:/config/pki/server.crt
- ./pki/pds/server.key:/config/pki/server.key
- ./pki/root.crt:/config/pki/root.crt
environment:
GLOBAL_CONFIG_PATH: /config/gateway.json
PDS_SERVER_NAME: pds
SERVICE_TLS_CERT: /config/pki/server.crt
SERVICE_TLS_KEY: /config/pki/server.key
SERVICE_TLS_ROOT_CA: /config/pki/root.crt
MYSQL_SERVER_HOST: mysql-server
MYSQL_SERVER_PORT: 3306
MYSQL_DATABASE: ${MYSQL_DCS_DATABASE}
MYSQL_USER: ${MYSQL_DCS_USER}
MYSQL_PASSWORD: ${MYSQL_DCS_PASSWORD}
APP_SERVICE_OBS_ENABLED: ${PDS_SERVICE_OBS_ENABLED:-true}
APP_SERVICE_NAME: ${PDS_SERVICE_NAME:-pds}
APP_SERVICE_ENV: ${PDS_SERVICE_ENV:-development}
APP_OTEL_EXPORTER_OTLP_ENDPOINT: ${COMMON_OTEL_EXPORTER_OTLP_ENDPOINT:-localhost:4317}
volumes:
mysql-db: {}