-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (51 loc) · 1.22 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
services:
bobot:
image: docker.io/gnu3ra/dijkstra:latest
pull_policy: missing
ports:
- "8080:8080"
environment:
- POSTGRES_USER=bobot
- POSTGRES_PASSWORD_FILE=/run/secrets/pass
- POSTGRES_DB=bobot
- POSTGRES_HOST=db
volumes:
- ./db_pass.txt:/run/secrets/pass:z
- ./config:/config:z
depends_on:
db:
condition: service_healthy
db:
image: docker.io/postgres:15.6-alpine
restart: always
environment:
- POSTGRES_USER=bobot
- POSTGRES_PASSWORD_FILE=/run/secrets/pass
- POSTGRES_DB=bobot
volumes:
- bobot-db:/var/lib/postgresql/data
- ./db_pass.txt:/run/secrets/pass:z
healthcheck:
test: pg_isready -U bobot
interval: 10s
timeout: 3s
retries: 10
redis:
image: docker.io/redis:7.2.4-alpine
restart: always
volumes:
- bobot-redis:/data
prometheus:
image: docker.io/prom/prometheus:v2.41.0
ports:
- 9000:9090
volumes:
- ./prometheus:/etc/prometheus:z
- prometheus-data:/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
volumes:
bobot-redis:
bobot-db:
prometheus-data:
cargo-cache:
migration-target: