-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
52 lines (47 loc) · 1.46 KB
/
docker-compose-dev.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
version: "3"
services:
http_mock:
build: .
environment:
- FASTIFY_LOG_LEVEL=error
- FASTIFY_PRETTY_LOGS=false
volumes:
- "./src:/home/node/app/src"
command: bash -c "npx fastify-cli start src/httpmock.js --watch"
ports:
- "3333:3000"
adapter:
build: .
environment:
- APP_NAME=Adapter
- FASTIFY_LOG_LEVEL=silent
- FASTIFY_PRETTY_LOGS=false
- CORS_ORIGIN=all
### locale
# - PUBLIZON_URL=http://http_mock:3000/publizon
# - PUBLIZON_CLIENT_ID=some-clientId
# - SMAUG_URL=http://http_mock:3000/smaug/configuration
# - USERINFO_URL=http://http_mock:3000/userinfo
#### prod
- PUBLIZON_URL=https://libapi.pubhub.dk
- PUBLIZON_CLIENT_ID=${PUBLIZON_CLIENT_ID}
- SMAUG_URL=https://auth-config.dbc.dk/configuration
- USERINFO_URL=https://login.bib.dk/userinfo
- HTTPS_PROXY=http://dmzproxy.dbc.dk:3128
#### staging
# - PUBLIZON_URL=https://library-api.qa.pubhub.dk
- |
PUBLIZON_CREDENTIALS=
000001,d4383a9fa7214a6d78a019c1328695a3,some-retailerId
000002,d4383a9fa7214a6d78a019c1328695a3,some-retailerId
000003,
000004,d4383a9fa7214a6d78a019c1328695a3
000005,,some-retailerId,
${VALID_PUBLIZON_CREDENTIALS}
ports:
- "3000:3000"
volumes:
- "./src:/home/node/app/src"
depends_on:
- http_mock
command: bash -c "npx fastify-cli start src/server.js --watch"