-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev-ci.yml
96 lines (86 loc) · 1.77 KB
/
docker-compose.dev-ci.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.9'
services:
web:
build:
context: .
dockerfile: ./Dockerfile
image: ghcr.io/procollab-github/api:latest
restart: unless-stopped
volumes:
- ./log:/procollab/log
env_file:
- .env
environment:
HOST: 0.0.0.0
expose:
- 8000
grafana:
image: grafana/grafana:latest
restart: unless-stopped
expose:
- 3000
volumes:
- grafana-data:/var/lib/grafana
- grafana-configs:/etc/grafana
environment:
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:%(http_port)s/grafana
- GF_SERVER_SERVE_FROM_SUB_PATH=true
prometheus:
image: prom/prometheus:v2.36.0
restart: unless-stopped
expose:
- 9090
volumes:
- prom-data:/prometheus
- ./prometheus:/etc/prometheus
nginx:
restart: unless-stopped
build: ./nginx
depends_on:
- web
ports:
- 8000:80
loki:
image: grafana/loki:2.9.0
restart: unless-stopped
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
promtail:
image: grafana/promtail:2.9.0
restart: unless-stopped
volumes:
- /var/log:/var/log
- ./promtail:/etc/promtail
- ./log:/procollab/log
command: -config.file=/etc/promtail/config.yml
redis:
image: redis:latest
restart: unless-stopped
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
# - db
- web
volumes:
- .:/procollab
volumes:
grafana-data:
grafana-configs:
prom-data:
prom-configs:
log:
promtail:
redis-data: