forked from xun082/online-edit-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (64 loc) · 1.39 KB
/
docker-compose.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.9'
services:
mongo:
image: mongo
container_name: mongodb
command: mongod --auth
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: online
restart: 'always'
redis:
image: redis
ports:
- '6379:6379'
environment:
- REDIS_PASSWORD=moment
command: redis-server --requirepass moment
volumes:
- redis-data:/data
restart: always
minio:
image: minio/minio
volumes:
- data:/data
- config:/root/.minio
ports:
- '9000:9000'
- '9001:9001'
environment:
MINIO_ROOT_USER: moment
MINIO_ROOT_PASSWORD: moment666
command: server /data --console-address ":9001"
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
interval: 30s
timeout: 20s
retries: 3
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- '9090:9090'
restart: always
grafana:
image: grafana/grafana
container_name: grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
ports:
- '3006:3000'
volumes:
- grafana-data:/var/lib/grafana
restart: always
volumes:
mongodata:
config:
redis-data:
data:
grafana-data: