-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
187 lines (180 loc) · 6.5 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
#Used for local testing purposes
services:
pdf-bygger:
build: ./pdf-bygger
environment:
- JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5006 -Djdk.lang.Process.launchMechanism=vfork #used for Apple M1 compatability
- PDF_COMPILE_TIMEOUT_SECONDS=200
- PDF_BYGGER_COMPILE_TMP_DIR=/tmp
ports:
- "8081:8080"
- "5016:5006"
pensjon-brevbaker:
environment:
- NAIS_APP_NAME=brevbaker
- PDF_BUILDER_URL=http://pdf-bygger:8080
- AZURE_OPENID_CONFIG_JWKS_URI=https://login.microsoftonline.com/966ac572-f5b7-4bbe-aa88-c76419c0f851/discovery/v2.0/keys
- AZURE_OPENID_CONFIG_ISSUER=https://login.microsoftonline.com/966ac572-f5b7-4bbe-aa88-c76419c0f851/v2.0
- AZURE_APP_CLIENT_ID=66a118a6-95db-4a64-be81-3af02048a46e
- AZURE_APP_PRE_AUTHORIZED_APPS=[{"name":"skribenten-backend","clientId":"adce3431-deeb-422f-959c-298b644b7611"}]
# Allows requests without auth-header #opens up debug port
- JAVA_TOOL_OPTIONS=-Dio.ktor.development=true -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
build: ./pensjon-brevbaker
ports:
- "8080:8080"
- "5015:5005" # debug port
env_file:
- ./pensjon-brevbaker/secrets/unleash.env
skribenten-backend:
profiles:
- skribenten
build: ./skribenten-backend
depends_on:
skribenten-backend-db:
condition: service_healthy
ports:
- "8082:8080"
- "5017:5007"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ./skribenten-backend/secrets/azuread.env
- ./skribenten-backend/secrets/unleash.env
environment:
- NAIS_APP_NAME=skribenten-backend
- BREVBAKER_SCOPE=api://dev-gcp.pensjonsbrev.pensjon-brevbaker/.default
- BREVBAKER_URL=http://pensjon-brevbaker:8080
- BREVMETADATA_URL=https://pensjon-brevmetadata-q2.intern.dev.nav.no
- CORS_ALLOW_HOST=*
- DB_HOST=skribenten-backend-db
- DB_PORT=5432
- DB_DATABASE=postgres
- DB_USERNAME=postgres
- DB_PASSWORD=pass
- JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5007
- KRR_SCOPE=api://dev-gcp.team-rocket.digdir-krr-proxy/.default
- KRR_URL=https://digdir-krr-proxy.intern.dev.nav.no
- PDL_SCOPE=api://dev-fss.pdl.pdl-api/.default
- PDL_URL=https://pdl-api.dev.intern.nav.no/graphql
- PEN_SCOPE=api://dev-fss.pensjon-q2.pensjon-pen-q2/.default
- PEN_URL=https://pensjon-pen-q2.dev.adeo.no/pen/api/
- PENSJON_PERSONDATA_SCOPE=api://dev-fss.pensjon-person.pensjon-persondata-q2/.default
- PENSJON_PERSONDATA_URL=https://pensjon-persondata-q2.dev-fss-pub.nais.io
- SAF_SCOPE=api://dev-fss.teamdokumenthandtering.saf/.default
- SAF_URL=https://saf-q2.dev-fss-pub.nais.io/graphql
- SAF_REST_URL=https://saf-q2.dev.intern.nav.no/rest
- SAMHANDLER_PROXY_SCOPE=api://dev-fss.pensjon-q2.pensjon-samhandler-proxy-q2/.default
- SAMHANDLER_PROXY_URL=https://pensjon-samhandler-proxy-q2.dev-fss-pub.nais.io
- TJENESTEBUSS_INTEGRASJON_URL=http://tjenestebuss-integrasjon:8080
- TJENESTEBUSS_INTEGRASJON_SCOPE=api://dev-fss.pensjonsbrev.pensjonsbrev-tjenestebuss-lokal/.default
- NAVANSATT_URL=https://navansatt.dev-fss-pub.nais.io
- NAVANSATT_SCOPE=api://dev-fss.teampensjon.navansatt/.default
- AD_GROUP_PENSJON_SAKSBEHANDLER=8bb9b8d1-f46a-4ade-8ee8-5895eccdf8cf
- AD_GROUP_Pensjon_Utland=bda6bd68-77e6-4c00-96b9-7ecf5df7413c
- AD_GROUP_Fortrolig_Adresse=ea930b6b-9397-44d9-b9e6-f4cf527a632a
- AD_GROUP_Strengt_Fortrolig_Adresse=5ef775f2-61f8-4283-bf3d-8d03f428aa14
- AD_GROUP_EndreStrengtFortroligUtland=fc792042-93d8-4d5e-a501-55c45c03c576
- AD_GROUP_Attestant=63f46f74-84a8-4d1c-87a8-78532ab3ae60
- NORG2_URL=https://norg2.intern.dev.nav.no/norg2/
skribenten-backend-db:
profiles:
- skribenten
image: 'postgres:14-alpine'
ports:
- "5432:5432"
healthcheck:
test: [ 'CMD', 'pg_isready', '-U', 'postgres' ]
interval: 3s
restart: always
environment:
POSTGRES_PASSWORD: pass
tjenestebuss-integrasjon:
build: ./tjenestebuss-integrasjon
profiles:
- skribenten
ports:
- "8086:8080"
- "5018:5008"
env_file:
- tjenestebuss-integrasjon/secrets/docker.env
environment:
- TJENESTEBUSS_URL=https://tjenestebuss-q2.adeo.no/
- STS_URL=https://security-token-service.dev.adeo.no
- SAMHANDLERSERVICE_URL=https://wasapp-q2.adeo.no/
- JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5008
wonderwall:
profiles:
- skribenten
image: ghcr.io/nais/wonderwall:latest
platform: linux/amd64
ports:
- "8083:8083"
restart: on-failure
env_file:
- skribenten-web/bff/.env
environment:
- WONDERWALL_AUTO_LOGIN=true
- WONDERWALL_AUTO_LOGIN_IGNORE_PATHS=/bff/*
- WONDERWALL_OPENID_PROVIDER=azure
- WONDERWALL_INGRESS=http://localhost:8083
- WONDERWALL_BIND_ADDRESS=0.0.0.0:8083
- WONDERWALL_UPSTREAM_HOST=skribenten-bff:8084
- WONDERWALL_LOG_LEVEL=debug
- WONDERWALL_LOG_FORMAT=text
skribenten-bff:
profiles:
- skribenten
build:
context: skribenten-web/bff
secrets:
- npmrc
env_file:
- skribenten-web/bff/.env
ports:
- "8084:8084"
environment:
NODE_ENV: "development"
EXPRESS_PORT: "8084"
EXPRESS_HOST: "::"
SKRIBENTEN_API_URL: "http://skribenten-backend:8080"
SKRIBENTEN_API_SCOPE: "api://dev-gcp.pensjonsbrev.skribenten-backend/.default"
brevoppskrift:
profiles:
- skribenten
build:
context: brevoppskrift-web/bff
ports:
- "8088:8088"
environment:
NODE_ENV: "development"
EXPRESS_PORT: "8088"
EXPRESS_HOST: "::"
BREVBAKER_API_URL: "http://pensjon-brevbaker:8080"
locust-master:
depends_on:
locust-worker:
condition: service_started
profiles:
- locust
image: locustio/locust
ports:
- "20080:20080"
- "8089:8089"
volumes:
- ./locust:/mnt/locust
command: -f /mnt/locust/locustfile.py --master -H https://pensjon-brevbaker.intern.dev.nav.no
locust-worker:
deploy:
replicas: 2
profiles:
- locust
image: locustio/locust
volumes:
- ./locust:/mnt/locust
command: -f /mnt/locust/locustfile.py --worker --master-host locust-master
networks:
default:
name: pensjon-local
secrets:
npmrc:
file: ~/.npmrc