forked from baking-bad/bcdhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (89 loc) · 1.99 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3.6"
services:
elastic:
image: ghcr.io/baking-bad/bcdhub-elastic:${TAG:-master}
build:
context: .
dockerfile: build/elastic/Dockerfile
restart: always
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
env_file:
- .env
ports:
- "127.0.0.1:${ES_REQUESTS_PORT}:9200"
logging: &bcd-logging
options:
max-size: 10m
max-file: "5"
db:
image: ghcr.io/baking-bad/bcdhub-db:${TAG:-master}
shm_size: 1g
user: postgres
build:
context: .
dockerfile: build/db/Dockerfile
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
logging: *bcd-logging
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:
- elastic
- 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
depends_on:
- elastic
- metrics
volumes:
- ${SHARE_PATH}:/etc/bcd
logging: *bcd-logging
metrics:
restart: always
image: ghcr.io/baking-bad/bcdhub-metrics:${TAG:-master}
build:
context: .
dockerfile: build/metrics/Dockerfile
env_file:
- .env
depends_on:
- elastic
- db
volumes:
- ${SHARE_PATH}:/etc/bcd
logging: *bcd-logging
volumes:
esdata:
db:
driver: local