forked from slon/shad-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
62 lines (55 loc) · 1.2 KB
/
docker-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
services:
prometheus:
image: prom/prometheus
container_name: prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
restart: unless-stopped
volumes:
- ./prometheus:/etc/prometheus
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
volumes:
- ./grafana:/etc/grafana/provisioning/datasources
my-service-0: &service
build:
context: ..
dockerfile: firegod/Dockerfile
restart: always
deploy:
resources:
limits:
cpus: '0.5'
memory: 100M
container_name: my-service-0
environment:
- REPLICA=0
my-service-1:
<<: *service
container_name: my-service-1
environment:
- REPLICA=1
my-service-2:
<<: *service
container_name: my-service-2
environment:
- REPLICA=2
my-service-3:
<<: *service
container_name: my-service-3
environment:
- REPLICA=3
my-service-4:
<<: *service
container_name: my-service-4
environment:
- REPLICA=4