-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.82 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: "3.7"
networks:
cluster:
services:
db:
image: postgres:16.0-alpine
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DATABASE=${DB_DATABASE}
- PGPORT=${DB_PORT}
volumes:
- type: bind
source: ./app-data/init-db.sql
target: /docker-entrypoint-initdb.d/docker_postgres_init.sql
- ./app-data/postgres_db:/var/lib/postgresql/data
networks: [ cluster ]
ports:
- "127.0.0.1:${DB_PORT}:${DB_PORT}"
healthcheck:
test: pg_isready -U ${DB_USER} -d ${DB_DATABASE}
interval: 10s
timeout: 3s
retries: 3
prometheus:
image: prom/prometheus:v2.36.2
restart: unless-stopped
volumes:
- type: bind
source: ./prometheus/
target: /etc/prometheus/
- ./app-data/prometheus_db:/prometheus/data
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
networks: [ cluster ]
ports:
- "127.0.0.1:9090:9090"
ragno:
image: "ragno:latest"
build:
context: .
dockerfile: Dockerfile
command: |
run
--log-level=${LOG_LEVEL}
--db-endpoint=${DB_URL}
--ip=${IP}
--port=$PORT
--metrics-ip=${METRICS_IP}
--metrics-port=${METRICS_PORT}
--dialers=${DIALERS}
--ip-api-url=${IP_API_URL}
--conn-timeout=${CONN_TIMEOUT}
--metrics-endpoint=${METRICS_ENDPOINT}
--snapshot-interval=${SNAPSHOT_INTERVAL}
--deprecation-time=${DEPRECATION_TIME}
restart: unless-stopped
depends_on:
db:
condition: service_healthy
networks: [ cluster ]
ports:
- "${IP}:${PORT}:5001"
- "${METRICS_IP}:${METRICS_PORT}:5080"