forked from baking-bad/bcdhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.gateway.yml
83 lines (78 loc) · 1.86 KB
/
docker-compose.gateway.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
version: "3.6"
services:
elastic:
image: ghcr.io/baking-bad/bcdhub-elastic:${TAG}
restart: always
volumes:
- esdata:/usr/share/elasticsearch/data
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms2g -Xmx2g" # CHANGEME: ElasticSearch RAM comsumption
logging: &bcd-logging
options:
max-size: 10m
max-file: "5"
db:
image: postgres:12
shm_size: 1g
restart: always
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=indexer
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- db:/var/lib/postgresql/data
logging: *bcd-logging
api:
restart: always
image: ghcr.io/baking-bad/bcdhub-api:${TAG}
environment:
- BCD_ENV=production
- GIN_MODE=release
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- PAGE_SIZE=100
- SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
depends_on:
- elastic
- db
ports:
- 127.0.0.1:14000:14000
volumes:
- bcdshare:/etc/bcd
logging: *bcd-logging
indexer:
restart: always
image: ghcr.io/baking-bad/bcdhub-indexer:${TAG}
environment:
- BCD_ENV=production
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
depends_on:
- elastic
- metrics
volumes:
- bcdshare:/etc/bcd
logging: *bcd-logging
metrics:
restart: always
image: ghcr.io/baking-bad/bcdhub-metrics:${TAG}
environment:
- BCD_ENV=production
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
depends_on:
- elastic
- db
volumes:
- bcdshare:/etc/bcd
logging: *bcd-logging
volumes:
esdata:
bcdshare:
db:
driver: local