-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
61 lines (60 loc) · 1.38 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
services:
nexus:
image: oasislabs/oasis-indexer:${USER}-dev
container_name: nexus
depends_on:
nexus-postgres:
condition: service_healthy
oasis-node:
condition: service_healthy
ports:
- 8008:8008
command:
- --config=/config/docker-dev.yml
volumes:
- type: bind
source: ./docker/node
target: /node
- type: bind
source: ./storage/migrations
target: /storage/migrations
- type: bind
source: ./config
target: /config
nexus-postgres:
image: postgres:13.7
container_name: nexus-postgres
ports:
- 5432:5432
environment:
POSTGRES_USER: rwuser
POSTGRES_PASSWORD: password
POSTGRES_DB: indexer
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rwuser -d indexer"]
interval: 5s
retries: 10
timeout: 5s
start_period: 15s
oasis-node:
image: oasislabs/oasis-node:${USER}-dev
container_name: oasis-node
user: oasis
command:
- /bin/sh
- -c
- oasis-node --config /node/etc/config.yml
volumes:
- type: bind
source: ./docker/node
target: /node
healthcheck:
test: oasis-node control status -a unix:/node/data/internal.sock || exit 1
interval: 5s
retries: 10
timeout: 5s
start_period: 30s
volumes:
config: {}
go: {}
migrations: {}