-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
97 lines (90 loc) · 2.59 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
87
88
89
90
91
92
93
94
95
96
97
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 --gas-limit 100000000 --silent"
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
- deployments:/contracts/out
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 -f /deployments/latest.json
echo "configure conrtact addrs"
jq < /deployments/latest.json
echo "starting"
exec env \
INDEXER_GAME_ADDRESS=$(jq -r .game < /deployments/latest.json) \
INDEXER_STATE_ADDRESS=$(jq -r .state < /deployments/latest.json) \
INDEXER_ROUTER_ADDRESS=$(jq -r .router < /deployments/latest.json) \
/ds-node
environment:
CHAIN_ID: "22300"
SEQUENCER_PRIVATE_KEY: "095a37ef5b5d87db7fe50551725cb64804c8c554868d3d729c0dd17f0e664c87"
SEQUENCER_PROVIDER_URL_HTTP: "http://contracts:8545"
SEQUENCER_BATCH_TIME_TARGET: "500"
INDEXER_PROVIDER_URL_HTTP: "http://contracts:8545"
INDEXER_TELEMETRY_ENABLE: "false"
ports:
- 8080:8080
depends_on:
- contracts
volumes:
- deployments:/deployments
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"
volumes:
deployments: