-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (84 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
93 lines (84 loc) · 1.65 KB
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
version: '3.9'
services:
web:
container_name: web
build:
context: .
dockerfile: ./Dockerfile
restart: always
command: bash ./scripts/startup.sh
volumes:
- ./log:/procollab/log
env_file:
- .env
environment:
HOST: 0.0.0.0
expose:
- 8000
grafana:
image: grafana/grafana-enterprise
container_name: grafana
restart: unless-stopped
ports:
- '3000:3000'
volumes:
- grafana-storage:/var/lib/grafana
prometheus:
container_name: prometheus
image: prom/prometheus:v2.36.0
ports:
- '9090:9090'
volumes:
- prom-data:/prometheus
- ./prometheus:/etc/prometheus
nginx:
container_name: nginx
build: ./nginx
depends_on:
- web
ports:
- "8000:80"
# todo: настроим позже
# loki:
# image: grafana/loki:2.9.0
# ports:
# - "3100:3100"
# command: -config.file=/etc/loki/local-config.yaml
#
# promtail:
# image: grafana/promtail:2.9.0
# volumes:
# - /var/log:/var/log
# - ./promtail:/etc/promtail
# - ./log:/procollab/log
# command: -config.file=/etc/promtail/config.yml
redis:
container_name: redis
image: redis:latest
expose:
- 6379
volumes:
- redis-data:/data
celerys:
container_name: api_celery
restart: always
build:
context: .
dockerfile: ./Dockerfile
env_file:
- .env
command: bash ./scripts/celery.sh
depends_on:
- redis
- web
volumes:
- .:/procollab
volumes:
grafana-data:
grafana-configs:
prom-data:
prom-configs:
log:
promtail:
redis-data:
grafana-storage: {}