forked from playmint/ds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (80 loc) · 2.17 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
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
version: "3"
services:
contracts:
build:
context: .
dockerfile: ./contracts/Dockerfile
image: ghcr.io/playmint/ds-contracts:hexwood0
ports:
- 8545:8545
environment:
CHAIN_ID: "22300"
EXTRA_ANVIL_ARGS: "--transaction-block-keeper 250"
DEPLOYER_PRIVATE_KEY: "0x6335c92c05660f35b36148bbfb2105a68dd40275ebf16eff9524d487fb5d57a8"
TONK_URL_HTTP: "http://tonk-web-server:8082"
SERVICES_URL_HTTP: "http://cog:8080/query"
SERVICES_URL_WS: "ws://cog:8080/query"
MAP: "${MAP}"
volumes:
- ./contracts/src:/contracts/src
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
image: ghcr.io/playmint/ds-shell:hexwood0
ports:
- 3000:80
cog:
build:
context: ./contracts/lib/cog/services
image: ghcr.io/playmint/ds-services:hexwood0
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: "22300"
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
redis:
profiles: [tonk]
image: redis:7.2.4-alpine
ports:
- "6379:6379"
tonk-state-service:
profiles: [tonk]
image: playmint/tonk-state-service:latest
depends_on:
- redis
- cog
environment:
TONK_SERVICES_STAGE: PRODUCTION
REDIS_URL: "redis://redis:6379"
RUST_LOG: "info"
DS_ENDPOINT: "http://cog:8080/query"
tonk-web-server:
profiles: [tonk]
image: playmint/tonk-web-server:latest
ports:
- "8082:8082"
depends_on:
- redis
environment:
TONK_SERVICES_STAGE: PRODUCTION
REDIS_URL: "redis://redis:6379"
RUST_LOG: "info"
ALLOWED_ORIGIN: "http://localhost:3000"