-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-box-consumer.yml
56 lines (56 loc) · 1.6 KB
/
docker-compose-box-consumer.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
services:
consumer:
build: .
image: edc-connector
pull_policy: never
container_name: consumer
restart: on-failure
ports:
- 9191:9191
- 9193:9193
- 9194:9194
- 9291:9291
- 9192:9192
environment:
PROPERTIES_FILE_PATH: /opt/src/dev-config/box-consumer.properties
KEYSTORE_PATH: /opt/src/dev-config/certs-consumer/cert.pfx
KEYSTORE_PASSWORD: datacellar
volumes:
- .:/opt/src
# To ensure that mDNS resolution is enabled in the container
- /var/run/dbus:/var/run/dbus
- /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket
extra_hosts:
- host.docker.internal:host-gateway
consumer_backend:
build: .
image: edc-connector
pull_policy: never
container_name: consumer_backend
restart: on-failure
command: ["run-http-backend"]
volumes:
- .:/opt/src
- /var/run/dbus:/var/run/dbus
- /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket
environment:
# The public key of the provider is needed to verify the signature of the JWT
EDC_CERT_PATH: /opt/src/dev-config/certs-provider/cert.pem
EDC_RABBIT_URL: amqp://guest:guest@broker:5672
EDC_HTTP_API_PORT: 8000
ports:
- 8000:8000
extra_hosts:
- host.docker.internal:host-gateway
broker:
image: rabbitmq:3.11-management
container_name: consumer_broker
restart: on-failure
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
extra_hosts:
- host.docker.internal:host-gateway