forked from playmint/ds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (53 loc) · 1.39 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
version: '3'
services:
contracts:
build:
context: .
dockerfile: ./contracts/Dockerfile
image: playmint/ds-contracts:local
ports:
- 8545:8545
environment:
DEPLOYER_PRIVATE_KEY: "0x6335c92c05660f35b36148bbfb2105a68dd40275ebf16eff9524d487fb5d57a8"
SERVICES_URL_HTTP: "http://cog:8080/query"
SERVICES_URL_WS: "ws://cog:8080/query"
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
image: playmint/ds-frontend:local
ports:
- 3000:80
docs:
build:
context: .
dockerfile: ./docs/Dockerfile
image: playmint/ds-docs:local
ports:
- 3002:80
cog:
build:
context: ./contracts/lib/cog/services
image: playmint/ds-services:local
restart: always
entrypoint:
- /bin/ash
- -eu
- -c
- |
echo "waiting contracts"
/wait-for -it contracts:8545 -t 300
echo "starting"
exec /ds-node
environment:
CHAIN_ID: "1337"
SEQUENCER_PRIVATE_KEY: "095a37ef5b5d87db7fe50551725cb64804c8c554868d3d729c0dd17f0e664c87"
SEQUENCER_PROVIDER_URL_HTTP: "http://contracts:8545"
SEQUENCER_PROVIDER_URL_WS: "ws://contracts:8545"
INDEXER_WATCH_PENDING: "false"
INDEXER_PROVIDER_URL_HTTP: "http://contracts:8545"
INDEXER_PROVIDER_URL_WS: "ws://contracts:8545"
ports:
- 8080:8080
depends_on:
- contracts