Skip to content

Commit 34cceb7

Browse files
Fix compose to match documentation
1 parent 790e740 commit 34cceb7

File tree

3 files changed

+87
-73
lines changed

3 files changed

+87
-73
lines changed

config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ pipeline:
7070

7171
environment:
7272
kafka_brokers:
73-
- hostname: 127.0.0.1
74-
port: 8097
75-
- hostname: 127.0.0.1
76-
port: 8098
77-
- hostname: 127.0.0.1
78-
port: 8099
73+
- hostname: kafka1
74+
port: 19092
75+
- hostname: kafka2
76+
port: 19093
77+
- hostname: kafka3
78+
port: 19094
7979
kafka_topics:
8080
pipeline:
8181
logserver_in: "pipeline-logserver_in"

docker/docker-compose/base/docker-compose.monitoring.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
services:
22
monitoring_agent:
3-
build:
4-
context: ../../..
5-
dockerfile: docker/dockerfiles/Dockerfile.monitoring
6-
network: host
3+
# build:
4+
# context: ../../..
5+
# dockerfile: docker/dockerfiles/Dockerfile.monitoring
6+
# network: host
7+
image: stefan96/heidgaf-monitoring:v1.0.0
78
restart: "unless-stopped"
9+
# platform: linux/x86_64
10+
volumes:
11+
- ../../../config.yaml:/app/config.yaml
812
depends_on:
913
kafka1:
1014
condition: service_healthy
Lines changed: 73 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,129 @@
11
services:
22
logserver:
3-
build:
4-
context: ../../..
5-
dockerfile: docker/dockerfiles/Dockerfile.logserver
6-
network: host
3+
# build:
4+
# context: ../../..
5+
# dockerfile: docker/dockerfiles/Dockerfile.logserver
6+
# network: host
7+
image: stefan96/heidgaf-logserver:v1.0.0
78
restart: "unless-stopped"
89
networks:
910
heidgaf:
10-
memswap_limit: 768m
11-
deploy:
12-
resources:
13-
limits:
14-
cpus: '2'
15-
memory: 512m
16-
reservations:
17-
cpus: '1'
18-
memory: 256m
11+
# platform: linux/x86_64
12+
# memswap_limit: 768m
13+
# deploy:
14+
# resources:
15+
# limits:
16+
# cpus: '2'
17+
# memory: 512m
18+
# reservations:
19+
# cpus: '1'
20+
# memory: 256m
1921
volumes:
2022
- "${MOUNT_PATH:?MOUNT_PATH not set}:/opt/file.txt"
2123
- ../../../config.yaml:/app/config.yaml
2224
environment:
2325
- GROUP_ID=log_storage
2426

2527
logcollector:
26-
build:
27-
context: ../../..
28-
dockerfile: docker/dockerfiles/Dockerfile.logcollector
29-
network: host
28+
# build:
29+
# context: ../../..
30+
# dockerfile: docker/dockerfiles/Dockerfile.logcollector
31+
# network: host
32+
image: stefan96/heidgaf-logcollector:v1.0.0
3033
restart: "unless-stopped"
3134
volumes:
3235
- ../../../config.yaml:/app/config.yaml
3336
networks:
3437
heidgaf:
35-
memswap_limit: 768m
36-
deploy:
37-
resources:
38-
limits:
39-
cpus: '2'
40-
memory: 512m
41-
reservations:
42-
cpus: '1'
43-
memory: 256m
38+
# platform: linux/x86_64
39+
# memswap_limit: 768m
40+
# deploy:
41+
# resources:
42+
# limits:
43+
# cpus: '2'
44+
# memory: 512m
45+
# reservations:
46+
# cpus: '1'
47+
# memory: 256m
4448
environment:
4549
- GROUP_ID=log_collection
4650

4751
prefilter:
48-
build:
49-
context: ../../..
50-
dockerfile: docker/dockerfiles/Dockerfile.prefilter
51-
network: host
52+
# build:
53+
# context: ../../..
54+
# dockerfile: docker/dockerfiles/Dockerfile.prefilter
55+
# network: host
56+
image: stefan96/heidgaf-prefilter:v1.0.0
5257
restart: "unless-stopped"
5358
volumes:
5459
- ../../../config.yaml:/app/config.yaml
5560
networks:
5661
heidgaf:
62+
# platform: linux/x86_64
5763
deploy:
5864
mode: "replicated"
5965
replicas: 1
60-
resources:
61-
limits:
62-
cpus: '2'
63-
memory: 512m
64-
reservations:
65-
cpus: '1'
66-
memory: 256m
66+
# resources:
67+
# limits:
68+
# cpus: '2'
69+
# memory: 512m
70+
# reservations:
71+
# cpus: '1'
72+
# memory: 256m
6773
environment:
6874
- GROUP_ID=log_filtering
6975

7076
inspector:
71-
build:
72-
context: ../../..
73-
dockerfile: docker/dockerfiles/Dockerfile.inspector
74-
network: host
77+
# build:
78+
# context: ../../..
79+
# dockerfile: docker/dockerfiles/Dockerfile.inspector
80+
# network: host
81+
image: stefan96/heidgaf-inspector:v1.0.0
7582
restart: "unless-stopped"
7683
volumes:
7784
- ../../../config.yaml:/app/config.yaml
7885
networks:
7986
heidgaf:
87+
# platform: linux/x86_64
8088
deploy:
8189
mode: "replicated"
8290
replicas: 2
83-
resources:
84-
limits:
85-
cpus: '2'
86-
memory: 512m
87-
reservations:
88-
cpus: '1'
89-
memory: 256m
91+
# resources:
92+
# limits:
93+
# cpus: '2'
94+
# memory: 512m
95+
# reservations:
96+
# cpus: '1'
97+
# memory: 256m
9098
environment:
9199
- GROUP_ID=data_inspection
92100
- NUMBER_OF_INSTANCES=2
93101

94102
detector:
95-
build:
96-
context: ../../..
97-
dockerfile: docker/dockerfiles/Dockerfile.detector
98-
network: host
103+
# build:
104+
# context: ../../..
105+
# dockerfile: docker/dockerfiles/Dockerfile.detector
106+
# network: host
107+
image: stefan96/heidgaf-detector:v1.0.0
99108
restart: "unless-stopped"
100109
volumes:
101110
- ../../../config.yaml:/app/config.yaml
102111
networks:
103112
heidgaf:
113+
# platform: linux/x86_64
104114
deploy:
105115
mode: "replicated"
106116
replicas: 1
107-
resources:
108-
limits:
109-
cpus: '2'
110-
memory: 512m
111-
# reservations:
112-
# cpus: '1'
113-
# memory: 256m
114-
# devices:
115-
# - driver: nvidia
116-
# count: 1 # alternatively, use `count: all` for all GPUs
117-
# capabilities: [ gpu ]
117+
# resources:
118+
# limits:
119+
# cpus: '2'
120+
# memory: 512m
121+
# reservations:
122+
# cpus: '1'
123+
# memory: 256m
124+
# devices:
125+
# - driver: nvidia
126+
# count: 1 # alternatively, use `count: all` for all GPUs
127+
# capabilities: [ gpu ]
118128
environment:
119129
- GROUP_ID=data_analysis

0 commit comments

Comments
 (0)