-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
91 lines (87 loc) · 2.6 KB
/
docker-compose.yaml
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
version: '3.7'
services:
amt-tiltak-postgres:
image: 'postgres:14-alpine'
container_name: amt-tiltak-postgres
ports:
- '5454:5432'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=qwerty
- POSTGRES_DB=amt-tiltak-db
mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:0.3.5
ports:
- '8082:8082'
environment:
SERVER_PORT: 8082
JSON_CONFIG: >
{
"interactiveLogin": true,
"httpServer": "NettyWrapper",
"tokenCallbacks": [
{
"issuerId": "local-tokenx",
"tokenExpiry": 31536000,
"requestMappings": [
{
"requestParam": "scope",
"match": "*",
"claims": {
"pid": "123456789",
"aud": "somescope"
}
}
]
},
{
"issuerId": "local-azuread",
"tokenExpiry": 31536000,
"requestMappings": [
{
"requestParam": "scope",
"match": "*",
"claims": {
"oid": "d35c35b2-ec1c-48f0-98aa-b2545e3730d1",
"aud": "somescope",
"NAVident": "Z4321"
}
}
]
}
]
}
###### KAFKA ######
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: wurstmeister/kafka:2.13-2.6.0
depends_on:
- zookeeper
ports:
- "9092:9092"
- "9093"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://:9093,OUTSIDE://:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_CREATE_TOPICS: "trade:1:1"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kafdrop:
image: obsidiandynamics/kafdrop
ports:
- "9000:9000"
environment:
KAFKA_BROKERCONNECT: kafka:9093
JVM_OPTS: "-Xms32M -Xmx64M"
SERVER_SERVLET_CONTEXTPATH: "/"
depends_on:
- kafka