-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod-ci.yml
More file actions
101 lines (96 loc) · 2.08 KB
/
docker-compose.prod-ci.yml
File metadata and controls
101 lines (96 loc) · 2.08 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
94
95
96
97
98
99
100
101
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
# web:
# 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
- prom-configs:/etc/prometheus
node-exporter:
image: prom/node-exporter:v1.3.1
restart: unless-stopped
expose:
- 9100
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.mount-points-exclude'
- '^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)'
nginx:
build: ./nginx
restart: unless-stopped
depends_on:
- web
ports:
- 8000:80
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:
redis-data: