forked from baking-bad/bcdhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.flextesa.yml
139 lines (130 loc) · 3.32 KB
/
docker-compose.flextesa.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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=-Xms256m -Xmx256m"
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=sandbox
- GIN_MODE=debug
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- SANDBOX_NODE_URI=http://sandbox:20000
- SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
depends_on:
- elastic
- db
ports:
- 127.0.0.1:14000:14000
- 172.17.0.1:14000:14000
volumes:
- bcdshare:/etc/bcd
links:
- "flextesa:sandbox"
logging: *bcd-logging
indexer:
restart: always
image: ghcr.io/baking-bad/bcdhub-indexer:${TAG}
environment:
- BCD_ENV=sandbox
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- SANDBOX_NODE_URI=http://sandbox:20000
- SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
depends_on:
- db
- metrics
links:
- "flextesa:sandbox"
volumes:
- bcdshare:/etc/bcd
logging: *bcd-logging
metrics:
restart: always
image: ghcr.io/baking-bad/bcdhub-metrics:${TAG}
environment:
- BCD_ENV=sandbox
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- SANDBOX_NODE_URI=http://sandbox:20000
- SANDBOX_IPFS_GATEWAY=https://cloudflare-ipfs.com
depends_on:
- elastic
- db
links:
- "flextesa:sandbox"
volumes:
- bcdshare:/etc/bcd
logging: *bcd-logging
flextesa:
restart: always
image: tqtezos/flextesa:20211206
command: hangzbox start --keep-root
environment:
- block_time=4
- flextesa_node_cors_origin=*
ports:
- 127.0.0.1:8732:20000
- 172.17.0.1:8732:20000
expose:
- 20000/tcp
logging: *bcd-logging
volumes:
- flextesa:/tmp/mini-box
gui:
container_name: sandbox-gui
restart: always
image: ghcr.io/baking-bad/bcdhub-gui:${TAG}
command: bash -c 'sed -i "s/http:\/\/localhost:14000\/v1/https:\/\/bcd.hover.engineering\/v1/g" js/app.e13a5560.js && nginx -g "daemon off;"'
depends_on:
- api
ports:
- 127.0.0.1:8000:80
- 172.17.0.1:8000:80
logging: *bcd-logging
nginx:
image: nginx:1.15-alpine
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx:/etc/nginx/conf.d
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
certbot:
image: certbot/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
volumes:
esdata:
bcdshare:
flextesa:
db:
driver: local