forked from ulrikpedersen/tomoscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
137 lines (132 loc) · 3.81 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: "3.8"
volumes:
mongodata:
name: tomoscan_mongodbdata
services:
motor-sim:
image: sim-pmac
stop_signal: "SIGKILL"
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201" # This has to be the name of the gralog server from the host perspective
tag: "tomoscan-logs"
motor-ioc:
image: pmac-ioc
stdin_open: true
depends_on:
- motor-sim
stop_signal: "SIGKILL"
env_file:
- epics.env
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201" # This has to be the name of the gralog server from the host perspective
tag: "tomoscan-logs"
areadetector:
image: ad-ioc
stdin_open: true
stop_signal: "SIGKILL"
volumes:
- type: bind
source: ./data
target: /out
env_file:
- epics.env
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201" # This has to be the name of the gralog server from the host perspective
tag: "tomoscan-logs"
pulse-sim:
image: sim-pulse
command:
- --standalone
stop_signal: "SIGKILL"
env_file:
- epics.env
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201" # This has to be the name of the gralog server from the host perspective
tag: "tomoscan-logs"
gateway:
image: ${DOCKER_TAG_BASE}epics-gateway-run:${DOCKER_TAG_VERSION}
ports:
- "50640:50640"
- "5064:50640/udp" # MOFIFY the port 5064 to something else when running multiple instances on the same subnet.
env_file:
- epics.env
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201" # This has to be the name of the gralog server from the host perspective
tag: "tomoscan-logs"
zookeeper:
image: confluentinc/cp-zookeeper:7.3.1
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201" # This has to be the name of the gralog server from the host perspective
tag: "tomoscan-logs"
kafka:
image: confluentinc/cp-kafka:7.3.1
ports:
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092,PLAINTEXT_INTERNAL://kafka:29092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201" # This has to be the name of the gralog server from the host perspective
tag: "tomoscan-logs"
pulse-id-gen:
image: ${DOCKER_TAG_BASE}pulse-id-gen:${DOCKER_TAG_VERSION}
command:
- -f
- config.ini
- --pv-prefix
- "EPAC-DEV:PULSE:"
- --period
- "5"
- --epics-time-offset
- "-0.05"
- --enable-gate
env_file:
- epics.env
stop_signal: "SIGINT"
depends_on:
- kafka
volumes:
- type: bind
source: ./pulse-id-gen.ini
target: /app/config.ini
read_only: true
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201" # This has to be the name of the gralog server from the host perspective
tag: "tomoscan-logs"
mongo-db:
image: mongo
ports:
- "27017:27017"
volumes:
- mongodata:/data/db
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201" # This has to be the name of the gralog server from the host perspective
tag: "tomoscan-logs"