This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
74 lines (66 loc) · 1.53 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
71
72
73
74
version: '3'
services:
postgres:
image: postgres:latest
container_name: storagebox-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- ./data/pg-data:/var/lib/postgresql/data
redis:
image: redis:latest
container_name: storagebox-redis
ports:
- "6379:6379"
server:
container_name: storagebox-server
build:
context: ./server
dockerfile: Dockerfile
ports:
- "4000:4000"
volumes:
- ./data/uploads:/app/uploads
website:
container_name: storagebox-website
build:
context: ./website
dockerfile: Dockerfile
ports:
- "4001:4001"
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
ports:
- "9100:9100"
command:
- '--path.rootfs=/host'
pid: host
restart: unless-stopped
volumes:
- './data/node_exporter-data:/host:ro,rslave'
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./data/prometheus-data:/etc/prometheus
grafana:
image: grafana/grafana-oss:latest
container_name: grafana
environment:
GF_SECURITY_ALLOW_EMBEDDING: true
GF_AUTH_ANONYMOUS_ENABLED: true
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
restart: unless-stopped
volumes:
grafana-data: