This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bww-ai-compose.yaml
65 lines (61 loc) · 2.23 KB
/
bww-ai-compose.yaml
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
version: '3'
networks:
wkernet:
driver: overlay
services:
manager:
image: xeusnguyen/agent-script:v0.0.2
working_dir: /app/NTMA_Anomaly/Script/worker/python
deploy:
resources:
limits:
cpus: '0.50'
memory: 500M
placement:
constraints:
- "node.role==manager"
entrypoint:
- python3
- node-manager.py
ports:
- 9999:9999
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./Infrastructure/docker/conf/nginx/nginx-default.conf:/app/NTMA_Anomaly/Infrastructure/docker/conf/nginx/nginx-default.conf
- ./Infrastructure/docker/conf/monitoring/prometheus/target/cadvisor.json:/app/NTMA_Anomaly/Infrastructure/docker/conf/monitoring/prometheus/target/cadvisor.json
- ./Infrastructure/docker/conf/monitoring/prometheus/target/fluentd.json:/app/NTMA_Anomaly/Infrastructure/docker/conf/monitoring/prometheus/target/fluentd.json
- ./Infrastructure/docker/conf/monitoring/prometheus/target/node-exporter.json:/app/NTMA_Anomaly/Infrastructure/docker/conf/monitoring/prometheus/target/node-exporter.json
- ./Infrastructure/docker/conf/monitoring/prometheus/target/nginx-exporter.json:/app/NTMA_Anomaly/Infrastructure/docker/conf/monitoring/prometheus/target/nginx-exporter.json
- ./Infrastructure/docker/conf/monitoring/prometheus/target/nginxlog-exporter.json:/app/NTMA_Anomaly/Infrastructure/docker/conf/monitoring/prometheus/target/nginxlog-exporter.json
- ./Infrastructure/docker/conf/nginx/ddos.conf:/app/NTMA_Anomaly/Infrastructure/docker/conf/nginx/ddos.conf
networks:
- wkernet
slave:
image: xeusnguyen/agent-script:v0.0.2
working_dir: /app/NTMA_Anomaly/Script/worker/python
deploy:
resources:
limits:
cpus: '0.50'
memory: 500M
placement:
constraints:
- "node.role==worker"
mode: global
entrypoint:
- python3
- node-worker.py
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- manager
networks:
- wkernet