-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
128 lines (127 loc) · 3.13 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
124
125
126
127
128
version: '2'
services:
http:
build:
context: .
target: http
container_name: gobase_http
env_file:
- .env
environment:
SERVICE_NAME: gobase_http
DD_SERVICE: gobase_http
KAFAK__BROKER: kafka:9092
DD_AGENT_HOST: datadog
AWS_ENDPOINT: http://localstack-main:4566
HTTP_SERVER__DOC_HOST: http://localhost:60005
TEST_URL_1: "http://echo-nginx-1"
TEST_URL_2: "https://gobase_http2:8080/service/echo"
ports:
- 60005:8080
networks:
- mongo_mongodb
- kafka_kafka
- common
- localstack_localstack
http2:
build:
context: .
target: http2
container_name: gobase_http2
env_file:
- .env
environment:
SERVICE_NAME: gobase_http2
DD_SERVICE: gobase_http2
KAFAK__BROKER: kafka:9092
DD_AGENT_HOST: datadog
AWS_ENDPOINT: http://localstack-main:4566
HTTP_SERVER__DOC_HOST: https://localhost:60006
HTTP_SERVER__TLS_PUBLIC_KEY: /service/server.crt
HTTP_SERVER__TLS_PRIVATE_KEY: /service/server.key
TEST_URL_1: "http://echo-nginx-1"
TEST_URL_2: "http://gobase_http:8080/service/echo"
ports:
- 60006:8080
networks:
- mongo_mongodb
- kafka_kafka
- common
- localstack_localstack
h2c:
build:
context: .
target: h2c
container_name: gobase_h2c
env_file:
- .env
environment:
SERVICE_NAME: gobase_h2c
DD_SERVICE: gobase_h2c
KAFAK__BROKER: kafka:9092
DD_AGENT_HOST: datadog
AWS_ENDPOINT: http://localstack-main:4566
HTTP_SERVER__DOC_HOST: http://localhost:60007
TEST_URL_1: "http://echo-nginx-1"
TEST_URL_2: "http://gobase_http:8080/service/echo"
ports:
- 60007:8080
networks:
- mongo_mongodb
- kafka_kafka
- common
- localstack_localstack
kafka-client:
build:
context: .
target: kafka
deploy:
mode: replicated
replicas: 3
env_file:
- .env
environment:
SERVICE_NAME: gobase_kafka
DD_SERVICE: gobase_kafka
KAFAK__BROKER: kafka:9092
DD_AGENT_HOST: datadog
AWS_ENDPOINT: http://localstack-main:4566
TEST_URL_1: "http://echo-nginx-1"
TEST_URL_2: "http://gobase_http:8080/service/echo"
networks:
- mongo_mongodb
- kafka_kafka
- common
- localstack_localstack
csfle:
build:
context: .
target: httpcsfle
env_file:
- .env
environment:
KMS_PROVIDER: local
SERVICE_NAME: gobase_csfle
DD_SERVICE: gobase_csfle
KAFAK__BROKER: kafka:9092
DD_AGENT_HOST: datadog
AWS_ENDPOINT: http://localstack-main:4566
TEST_URL_1: "http://echo-nginx-1"
TEST_URL_2: "http://gobase_http:8080/service/echo"
CSFLE_CRYPT_SHARED_LIB_PATH: /service/pkg/mongo_crypt_shared_v1-7.0.5/lib/mongo_crypt_v1.so
ports:
- 60008:8080
networks:
- mongo_mongodb
- kafka_kafka
- common
- localstack_localstack
networks:
mongo_mongodb:
external: true
kafka_kafka:
external: true
common:
external: true
localstack_localstack:
external: true