-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
53 lines (49 loc) · 1.37 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
47
48
49
50
51
52
53
# Docker-Compose example for composing both OrbisD and SourceHub
# together.
#
# NOTE: The volumes for both images are mounted from the local system
# by default. Since docker runs under root, new files in these volumes
# will be owned by root.
# - Orbis gets $HOME/.orbis mounted as /root/.orbis
# - SourceHub gets $HOME/.orbis mounted as /root/.sourcehub
volumes:
orbis-data:
driver: local
driver_opts:
type: none
device: $HOME/.orbis
o: bind
sourcehub-data:
driver: local
driver_opts:
type: none
device: $HOME/.sourcehub
o: bind
services:
orbisd:
depends_on:
sourcehubd:
condition: service_started
# default image runs as user 'node'
image: ghcr.io/sourcenetwork/orbis:0.2.2
volumes:
- orbis-data:/home/node/.orbis
- sourcehub-data:/home/node/.sourcehub # Needed to access sourcehub cli keyring
command: ["start", "--config", "/home/node/.orbis/orbis.yaml"]
ports:
- "9000:9000" # P2P
- "8080:8080" # GRPC API
- "8090:8090" # REST API
sourcehubd:
# default image runs as user 'node'
image: ghcr.io/sourcenetwork/sourcehub:0.2.0
volumes:
- sourcehub-data:/home/node/.sourcehub
command:
- start
# - Add whatever CLI args/flags
ports:
- "26657:26657" # RPC
- "26656:26656" # P2P
- "1317:1317" # API
- "4500:4500"