-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 1.19 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
version: '3.9'
services:
mongo-for-orion-v2:
image: mongo:${MONGO_DB_VERSION}
hostname: mongo-db2
container_name: db-mongo-2
volumes:
- mongo-db2:/data
ports:
- 27018:27017 # localhost:27017
networks:
- default
lepus:
image: quay.io/fiware/lepus
build:
context: .
dockerfile: Dockerfile
hostname: adapter
container_name: lepus
networks:
- default
expose:
- "3000"
ports:
- "3000:3000"
environment:
- DEBUG=adapter:*
- NGSI_V2_CONTEXT_BROKER=http://orion2:1026/v2
- CONTEXT_URL=https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld
- NOTIFICATION_RELAY_URL=http://adapter:3000/notify
orion:
image: quay.io/fiware/orion:${ORION_VERSION}
hostname: orion2
container_name: fiware-orion-v2
depends_on:
- mongo-for-orion-v2
networks:
- default
expose:
- "${ORION_PORT}"
ports:
- "${ORION_PORT}:1026" # localhost:1026
command: -dbhost mongo-db2 -logLevel DEBUG
healthcheck:
test: curl --fail -s http://orion2:1026/version || exit 1
interval: 5s
networks:
default:
volumes:
mongo-db2: ~