-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (40 loc) · 1.04 KB
/
docker-compose.yaml
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
version: "3.9"
services:
indexer:
command:
- "--config=/app/agate-config.yaml"
- "indexer"
build:
dockerfile: Dockerfile
context: .
depends_on:
database:
condition: service_healthy
networks:
- agate-net
volumes:
- ./agate-config-docker.yaml:/app/agate-config.yaml
stop_grace_period: "10m"
database:
hostname: database
image: bitnami/postgresql:15.2.0
ports:
- "${AGATE_INDEXER_DATABASE_PORT}:5432"
environment:
- POSTGRES_USER=${AGATE_INDEXER_DATABASE_USERNAME}
- POSTGRES_PASSWORD=${AGATE_INDEXER_DATABASE_PASSWORD}
- POSTGRES_DATABASE=${AGATE_INDEXER_DATABASE_DBNAME}
networks:
- agate-net
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "${AGATE_INDEXER_DATABASE_DBNAME}", "-U", "${AGATE_INDEXER_DATABASE_USERNAME}" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
- indexer-data:/var/lib/postgresql/data
stop_grace_period: "10m"
volumes:
indexer-data:
networks:
agate-net: