-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yaml
46 lines (46 loc) · 1.28 KB
/
docker-compose.yaml
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
version: '3.8'
services:
database:
container_name: "${NEAR_ENV:-testnet}_database"
image: auroraisnear/relayer-database
restart: unless-stopped
ports:
- '127.0.0.1:5432:5432'
volumes:
- database:/var/lib/postgresql/data
indexer:
container_name: "${NEAR_ENV:-testnet}_indexer"
image: auroraisnear/relayer-endpoint
restart: unless-stopped
init: true
depends_on:
- database
environment:
- WAIT_HOSTS=database:5432
- WAIT_BEFORE=1
- NEAR_ENV=${NEAR_ENV:-testnet}
- NODE_ENV=${NEAR_ENV:-testnet}
volumes:
- ./config:/srv/aurora/relayer/config
extra_hosts:
- host.docker.internal:host-gateway # See: https://stackoverflow.com/a/43541732
entrypoint: ["sh", "-c", "util/indexer/indexer | node lib/indexer_backend.js"]
endpoint:
container_name: "${NEAR_ENV:-testnet}_endpoint"
image: auroraisnear/relayer-endpoint
restart: unless-stopped
init: true
depends_on:
- database
environment:
- WAIT_HOSTS=database:5432
- WAIT_BEFORE=1
- NEAR_ENV=${NEAR_ENV:-testnet}
- NODE_ENV=${NEAR_ENV:-testnet}
ports:
- '127.0.0.1:8545:8545'
volumes:
- ./config:/srv/aurora/relayer/config
entrypoint: ["node", "lib/index.js"]
volumes:
database: