-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
139 lines (129 loc) · 2.92 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
129
130
131
132
133
134
135
136
137
138
139
version: '3'
networks:
app-tier:
driver: bridge
services:
openldap:
container_name: ldap
build: ./docker-compose-env/ldap
networks:
- app-tier
ports:
- "10636:636"
- "10389:389"
environment:
- "LDAP_TLS_VERIFY_CLIENT=try"
zookeeper:
#image: confluentinc/cp-zookeeper
container_name: zookeeper
build: ./docker-compose-env/zookeeper
networks:
- app-tier
env_file:
- "./docker-compose-env/zookeeper.env"
ports:
- "2181:2181"
kafka:
container_name: kafka
build: ./docker-compose-env/kafka
networks:
- app-tier
env_file:
- "./docker-compose-env/kafka.env"
ports:
- "9092:9092"
- "9093:9093"
depends_on:
- zookeeper
- openldap
kafkadminrest:
image: "navikt/kafka-adminrest"
networks:
- app-tier
ports:
- "8840:8080"
env_file:
- "./docker-compose-env/kafka-admin-rest.env"
depends_on:
- kafka
setup:
image: "curlimages/curl"
networks:
- app-tier
ports:
- "8841:8080"
volumes:
- "./docker-compose-env/setup.sh:/usr/local/bin/setup.sh"
- "./docker-compose-env/oneshot.json:/usr/local/bin/oneshot.json"
entrypoint: setup.sh
depends_on:
- kafkadminrest
schema-registry:
image: "confluentinc/cp-schema-registry:5.0.1"
networks:
- app-tier
depends_on:
- zookeeper
- kafka
ports:
- "8081:8081"
env_file:
- "./docker-compose-env/schema-registry.env"
oidc-provider-gui:
container_name: oidc-provider-gui
networks:
- app-tier
image: "docker.pkg.github.com/navikt/flex-docker-compose/flex-oidc-provider-gui:latest"
ports:
- "5000:5000"
depends_on:
- oidc-provider
environment:
REDIRECT_URL: "http://localhost:8080/soknad"
AUTO_REDIRECT_TO_FRONTEND: "true"
oidc-provider:
container_name: oidc-provider
networks:
- app-tier
image: "docker.pkg.github.com/navikt/flex-docker-compose/flex-stub-oidc-provider:latest"
ports:
- "9000:9000"
environment:
PORT: "9000"
CALLBACK_URL: "http://localhost:5000/callback"
ISSUER: "https://localhost:9000"
wiremock:
container_name: wiremock
networks:
- app-tier
image: "rodolpheche/wiremock"
volumes:
- "./src/test/resources:/home/wiremock"
ports:
- "8000:8080"
db:
container_name: db
image: 'postgres:11'
networks:
- app-tier
restart: on-failure
hostname: localhost
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: password
sif-innsyn-api:
container_name: sif-innsyn-api
image: 'sif-innsyn-api-local:latest'
networks:
- app-tier
restart: on-failure
env_file:
- ./docker-compose-env/sif-innsyn-api.env
ports:
- "8080:8080"
hostname: localhost
depends_on:
- db
- kafka
- kafkadminrest