-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (72 loc) · 2.09 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"
services:
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- "2181:2181"
networks:
- local
kafka:
image: wurstmeister/kafka:latest
ports:
- "9092:9092"
expose:
- "9093"
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://kafka:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "my-topic:1:1"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- kafka
- local
nats:
image: nats
command:
- '-js'
networks:
- local
orthanc:
image: local/orthanc
build: .
volumes:
- ./orthanc_ext/:/python/orthanc_ext
- ./orthanc.json:/etc/orthanc/orthanc.json:ro
environment:
VERBOSE_ENABLED: "true"
ORTHANC__SSL_ENABLED: "false"
ORTHANC__SSL_CERTIFICATE: "/ssl/keyAndCert.pem"
ORTHANC__OVERWRITE_INSTANCES: "true"
ORTHANC__PYTHON_VERBOSE: "false"
ORTHANC__HTTP_PORT: "8042"
ORTHANC__PYTHON_SCRIPT: "/python/entry_point.py"
ORTHANC__REGISTERED_USERS: |
{"demo": "demo"}
NATS_URL: nats://nats
KAFKA_URL: ""
KAFKA_TOPIC: "test"
depends_on:
- nats
ports:
- "127.0.0.1:4242:4242"
- "127.0.0.1:8042:8042"
networks:
- local
- kafka
consumer:
image: local/consumer
ports:
- "2020:2020"
command: uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 2020
environment:
KAFKA_URL: "kafka:9092"
networks:
- local
- kafka
networks:
local:
kafka: