-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
78 lines (71 loc) · 1.51 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
version: '3'
networks:
default:
driver: bridge
services:
db:
container_name: db
image: mongo:5.0.0
ports:
- "9095:27017"
- "8085:27017"
#used also by dev environment
volumes:
- ./modules/db/data:/data/db
environment:
- MONGO_INITDB_DATABASE=ojp
restart: "always"
api-ojp:
container_name: api-ojp
image: ojp/api-ojp:latest
build:
context: ./modules/api-ojp
ports:
- "9091:9091"
environment:
- LOG_REQUEST=true
- OTP_MAX_PARALLEL_REQUESTS=10
depends_on:
- db
- api-otp
- ep-manager
api-otp:
container_name: api-otp
image: ojp/api-otp:latest
build:
context: ./modules/api-otp
ports:
- "9092:9092"
environment:
- OTP_HOST=${OTP_HOST}
- OTP_PATH=/otp/routers/default/index/graphql
- OTP_PORT=8080
#- QUERY_DEBUG=true
ep-manager:
container_name: ep-manager
image: ojp/ep-manager:latest
build:
context: ./modules/ep-manager
ports:
- "9093:9093"
environment:
- CSV_AUTOIMPORT=false
- CSV_VERSION=0.16
#- CSV_URL=https://remote.resource.com/exchangepoints.csv
# volumes:
# - ./csvs:/home/csvs
depends_on:
- db
tests:
container_name: tests
image: ojp/tests:latest
build:
context: ./modules/tests
ports:
- "9096:9096"
environment:
- API_HOST=localhost
- NODE_ENV=devdocker
#only for local docke-compose
depends_on:
- api-ojp