-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
54 lines (54 loc) · 1.43 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
version: '2'
services:
nginx:
build: ./docker/nginx
ports:
- 80:80
depends_on:
- api
api:
build: .
depends_on:
- mongodb
- redis
environment:
API_HOST_PORT: 8888
LOG_LEVEL: debug
LOG_FILE_NAME: api.log
LOG_TO_FILE: "false"
NEW_RELIC_IS_ENABLED: "false"
NEW_RELIC_LICENSE_KEY: key
NEW_RELIC_PROXY_URL: http://newrelicproxy.com
MONGO_URL: mongodb
MONGO_PORT: 27017
MONGO_TIMEOUT: 60
MONGO_DATABASE_NAME: api
REDIS_URL: redis
restart: unless-stopped
mongodb:
image: mongo:4
restart: unless-stopped
redis:
image: redis:6
restart: unless-stopped
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./metrics/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
pushgateway:
image: prom/pushgateway
container_name: pushgateway
ports:
- 9091:9091
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
volumes:
- ./metrics/grafana/provisioning:/etc/grafana/provisioning