forked from MasterOz786/Shurull-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.staging.yml
47 lines (43 loc) · 1.1 KB
/
docker-compose.staging.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
version: '3.8'
services:
shurull_api:
build:
context: .
dockerfile: Dockerfile
args:
BUILDKIT_INLINE_CACHE: 1
container_name: shurull_api_staging
ports:
- "5001:5000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- PROMETHEUS_MULTIPROC_DIR=/tmp
- ENVIRONMENT=staging
- DOCKER_BUILDKIT=1
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
prometheus_staging:
image: prom/prometheus
container_name: shurull_prometheus_staging
ports:
- "9091:9090"
volumes:
- ./prometheus.staging.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
grafana_staging:
image: grafana/grafana
container_name: shurull_grafana_staging
ports:
- "3001:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD:-admin}
- GF_SERVER_ROOT_URL=https://grafana-staging.shurull-api.com
volumes:
- grafana-staging-storage:/var/lib/grafana
volumes:
grafana-staging-storage: