-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
59 lines (56 loc) · 1.27 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
version: "3.6"
services:
db:
image: timescale/timescaledb:latest-pg15
shm_size: 1g
user: postgres
restart: always
env_file:
- .env
volumes:
- db:/var/lib/postgresql/data
- /etc/postgresql/postgresql.conf:/etc/postgresql/postgresql.conf
ports:
- 127.0.0.1:${POSTGRES_PORT}:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
logging: &bcd-logging
options:
max-size: 10m
max-file: "5"
command:
- "postgres"
- "-c"
- "config_file=${POSTGRES_CONFIG:-/var/lib/postgresql/data/postgresql.conf}"
api:
restart: always
image: ghcr.io/baking-bad/bcdhub-api:${TAG:-master}
build:
context: .
dockerfile: build/api/Dockerfile
env_file:
- .env
depends_on:
- db
ports:
- 127.0.0.1:${BCD_API_PORT}:14000
volumes:
- ${SHARE_PATH}:/etc/bcd
logging: *bcd-logging
indexer:
restart: always
image: ghcr.io/baking-bad/bcdhub-indexer:${TAG:-master}
build:
context: .
dockerfile: build/indexer/Dockerfile
env_file:
- .env
volumes:
- ${SHARE_PATH}:/etc/bcd
logging: *bcd-logging
volumes:
db:
driver: local