-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose_manual_test.yaml
executable file
·106 lines (99 loc) · 2.06 KB
/
docker-compose_manual_test.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
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
version: '3'
services:
docker-registry:
image: registry:2
ports:
- "5001:5000"
volumes:
- ./docker-registry-config.yaml:/etc/docker/registry/config.yml
networks:
- ch_ntw
ch_server:
image: clickhouse/clickhouse-server:22.6
ports:
- "8123:8123"
- "9000:9000"
volumes:
- ./ch_server_db:/var/lib/clickhouse
networks:
- ch_ntw
nats:
image: nats:latest
command:
- "--jetstream"
- "--http_port"
- "8222"
environment:
NATS_HTTP_PORT_NUMBER: 8222
expose:
- "4222"
ports:
- "8222:8222"
- "4222:4222"
networks:
- ch_ntw
grafana:
image: grafana/grafana-enterprise:8.2.0
ports:
- 3000:3000
networks:
- ch_ntw
agent:
entrypoint: "/agent"
build:
context: ./
dockerfile: dockerfiles/agent/Dockerfile
restart: always
environment:
NATS_TOKEN: "UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD"
NATS_ADDRESS: "nats://nats:4222"
PORT: "8090"
STREAM_NAME: "CONTAINERMETRICS"
ports:
- "8090:8090"
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
reservations:
cpus: '0.25'
memory: 64M
# depends_on:
# web:
# condition: service_healthy
networks:
- ch_ntw
client:
entrypoint: "/client"
build:
context: ./
dockerfile: dockerfiles/client/Dockerfile
restart: always
environment:
NATS_TOKEN: "UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD"
NATS_ADDRESS: "nats://nats:4222"
DB_ADDRESS: "ch_server:9000"
PORT: "8091"
STREAM_NAME: "CONTAINERMETRICS"
ports:
- "8091:8091"
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
reservations:
cpus: '0.25'
memory: 64M
# depends_on:
# ch_server:
# condition: service_healthy
networks:
- ch_ntw
networks:
ch_ntw:
driver: bridge
# ipam:
# config:
# - subnet: 10.222.1.0/24