-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (38 loc) · 1.07 KB
/
docker-compose.yaml
File metadata and controls
40 lines (38 loc) · 1.07 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
---
services:
postgres:
image: postgres:16
container_name: heimdall_postgres
environment:
POSTGRES_USER: heimdall
POSTGRES_PASSWORD: heimdall
POSTGRES_DB: heimdall
ports:
- "5433:5432"
volumes:
- postgres-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d heimdall -U heimdall"]
interval: 10s
retries: 5
start_period: 5s
restart: always
heimdall:
build: .
ports:
- "9090:9090"
container_name: heimdall_server
restart: always
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
- AWS_REGION=${AWS_REGION}
- METRICS_EMITTER=prometheus
- PROMETHEUS_ADDRESS=:9091
depends_on:
postgres:
condition: service_healthy
# command: ["bash", "-c", "./dist/deploydb -conf /etc/heimdall/heimdall.yaml assets/databases/heimdall/build/heimdall.lst && ./dist/heimdall -conf /etc/heimdall/heimdall.yaml"]
volumes:
postgres-db: