-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-dev.yml
50 lines (46 loc) · 1.36 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
version: "3"
services:
http_mock:
build: .
environment:
- FASTIFY_LOG_LEVEL=error
- FASTIFY_PRETTY_LOGS=false
- REDIS_HOST=redis
volumes:
- "./src:/home/node/app/src"
command: bash -c "npx fastify start src/httpmock.js --watch"
depends_on:
- redis
ports:
- "3333:3000"
redis:
image: "redis:alpine"
adapter:
build: .
environment:
- CORS_ORIGIN=all
- REDIS_HOST=redis
# local
# - FASTIFY_LOG_LEVEL=silent
# - FASTIFY_PRETTY_LOGS=false
# - SMAUG_URL=http://http_mock:3000/smaug/configuration
# - FBS_CMS_API_URL=http://http_mock:3000/fbscms
# - USERINFO_URL=http://http_mock:3000/userinfo
# prod
- FASTIFY_LOG_LEVEL=debug
- FASTIFY_PRETTY_LOGS=true
- SMAUG_URL=https://auth-config.dbc.dk/configuration
- FBS_CMS_API_URL=https://cicero-fbs.com/rest
- USERINFO_URL=https://login.bib.dk/userinfo
- HTTPS_PROXY=http://dmzproxy.dbc.dk:3128
- REDIS_CLUSTER_HOST=frontend-fbscmsadapter-staging-redis-cluster.platform-redis.svc.cloud.dbc.dk
# staging
# - FBS_CMS_API_URL=https://et.cicero-fbs.com/rest
ports:
- "3000:3000"
volumes:
- "./src:/home/node/app/src"
depends_on:
- http_mock
- redis
command: bash -c "npx fastify start src/server.js --watch"