-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
67 lines (64 loc) · 1.57 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
services:
indexer:
image: ghcr.io/celenium-io/celestia-indexer:${TAG:-master}
build:
dockerfile: build/indexer/Dockerfile
context: .
env_file:
- .env
restart: always
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
depends_on:
- db
logging: &celestia-logging
options:
max-size: 10m
max-file: "5"
api:
restart: always
image: ghcr.io/celenium-io/celestia-indexer-api:${TAG:-master}
build:
context: .
dockerfile: build/api/Dockerfile
env_file:
- .env
depends_on:
- db
ports:
- "127.0.0.1:9876:9876"
logging: *celestia-logging
quotes:
restart: always
image: ghcr.io/celenium-io/celestia-indexer-quotes:${TAG:-master}
build:
context: .
dockerfile: build/quotes/Dockerfile
env_file:
- .env
depends_on:
- db
logging: *celestia-logging
db:
command:
- -cshared_preload_libraries=timescaledb,pg_stat_statements
- -cpg_stat_statements.track=all
image: timescale/timescaledb-ha:pg15.8-ts2.17.0-all
restart: always
volumes:
- db:/home/postgres/pgdata/data
ports:
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_HOST=${POSTGRES_HOST:-db}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB:-celestia}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d celestia"]
interval: 10s
timeout: 5s
retries: 5
logging: *celestia-logging
volumes:
db: