-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-testing.yml
48 lines (45 loc) · 1.23 KB
/
docker-compose-testing.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
version: "3.9"
services:
artemis:
build: "./Artemis"
container_name: "artemis"
# Persistent volume
# Make sure you prune to get clean state for test runs
volumes:
- artemis-data:/var/lib/artemis/data
ports:
- "8161:8161"
# You can set up limits here
# But make sure you also correct java memory in artemis Dockerfile in order to have effect.
deploy:
resources:
reservations:
memory: 8g
producer-seznamzpravy.cz:
# This is the producer service, you can have multiple of them
build: "./Aggregator"
command: [ "seznamzpravy.cz" ]
depends_on:
- consumer
# This is consumer spawn as many as you want, you ideally want to have pills set up to number of producers.
# Make sure you use use-hostname-output to have disitnguished output folders for each consumer.
consumer:
build: ./Processor
command:
[
"--use_hostname_output",
"--timeout=1",
"--pills_to_die=7",
"--queue_size=200",
"--output_path=/output",
"queue.seznamzpravy.cz",
]
volumes:
- ./output:/output:z
deploy:
# Number of replicas
replicas: 1
depends_on:
- artemis
volumes:
artemis-data: