-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
169 lines (161 loc) · 4.76 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
services:
cardinal:
container_name: cardinal
environment:
- REDIS_ADDRESS=redis:6379
- REDIS_PASSWORD=${REDIS_PASSWORD:-very_unsafe_password_replace_me}
- BASE_SHARD_SEQUENCER_ADDRESS=evm:9601
build:
target: runtime
depends_on:
- redis
expose:
- "4040"
ports:
- "4040:4040"
restart: unless-stopped
networks:
- world-engine
cardinal-debug:
container_name: cardinal-debug
environment:
- REDIS_ADDRESS=redis:6379
- REDIS_PASSWORD=${REDIS_PASSWORD:-very_unsafe_password_replace_me}
- BASE_SHARD_SEQUENCER_ADDRESS=evm:9601
build:
target: runtime-debug
cap_add:
- SYS_PTRACE
security_opt:
- "seccomp:unconfined"
depends_on:
- redis
expose:
- "4040"
ports:
- "4040:4040"
- "40000:40000"
restart: unless-stopped
networks:
- world-engine
evm:
container_name: evm
image: ghcr.io/argus-labs/world-engine-evm:1.4.1
environment:
## Env vars reference: https://github.com/Argus-Labs/world-engine/blob/main/evm/README.md
## Get AUTH_TOKEN from celestia_devnet container: `$(docker exec $(docker ps -q) celestia bridge auth admin --node.store /home/celestia/bridge`
- DA_BASE_URL=${DA_BASE_URL:-http://celestia-devnet}
- DA_AUTH_TOKEN=${DA_AUTH_TOKEN:-}
- FAUCET_ENABLED=${FAUCET_ENABLED:-false}
- FAUCET_ADDRESS=${FAUCET_ADDRESS:-aa9288F88233Eb887d194fF2215Cf1776a6FEE41} # ETH address without leading 0x (Default: account 0 of CHAIN_KEY_MNEMONIC)
- FAUCET_AMOUNT=${FAUCET_AMOUNT:-0x56BC75E2D63100000} # ETH in wei unit, encoded as hexadecimal. (Default: 100 ETH)
- BASE_SHARD_ROUTER_KEY=${BASE_SHARD_ROUTER_KEY:-abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ01} # Secure auth token for game shard
restart: unless-stopped
expose:
- "1317"
- "26657"
- "9090"
- "9601"
ports:
- "1317:1317"
- "26657:26657"
- "9090:9090"
- "9601:9601"
- "8545:8545"
networks:
- world-engine
depends_on:
- celestia-devnet
nakama:
container_name: nakama
platform: linux/amd64
image: ghcr.io/argus-labs/world-engine-nakama:1.2.7
depends_on:
- "nakama-db"
- "${CARDINAL_CONTAINER:-cardinal}"
environment:
- CARDINAL_CONTAINER=${CARDINAL_CONTAINER:-cardinal}
- CARDINAL_ADDR=${CARDINAL_CONTAINER:-cardinal:4040}
- CARDINAL_NAMESPACE=${CARDINAL_NAMESPACE:-defaultnamespace}
- DB_PASSWORD=${DB_PASSWORD:-very_unsafe_password_replace_me}
- ENABLE_ALLOWLIST=${ENABLE_ALLOWLIST:-false}
- OUTGOING_QUEUE_SIZE=${OUTGOING_QUEUE_SIZE:-64}
entrypoint:
- "/bin/sh"
- "-ec"
- >
/nakama/nakama migrate up --database.address root:${DB_PASSWORD:-very_unsafe_password_replace_me}@nakama-db:26257/nakama &&
/nakama/nakama --config /nakama/data/local.yml
--database.address root:${DB_PASSWORD:-very_unsafe_password_replace_me}@nakama-db:26257/nakama
--socket.outgoing_queue_size=${OUTGOING_QUEUE_SIZE:-64}
--logger.level INFO
expose:
- "7349"
- "7350"
- "7351"
healthcheck:
test: [ "CMD", "/nakama/nakama", "healthcheck" ]
interval: 1s
timeout: 1s
retries: 20
ports:
- "7349:7349"
- "7350:7350"
- "7351:7351"
networks:
- world-engine
restart: unless-stopped
nakama-db:
container_name: nakama-db
image: cockroachdb/cockroach:latest-v23.1
command: start-single-node --insecure --store=attrs=ssd,path=/var/lib/cockroach/,size=20%
restart: unless-stopped
environment:
- COCKROACH_DATABASE=nakama
- COCKROACH_USER=root
- COCKROACH_PASSWORD=${DB_PASSWORD:-very_unsafe_password_replace_me}
volumes:
- data:/var/lib/cockroach
expose:
- "26257"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health?ready=1" ]
interval: 3s
timeout: 3s
retries: 5
attach: false
networks:
- world-engine
redis:
container_name: redis
image: redis:latest
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD:-very_unsafe_password_replace_me}"]
expose:
- "6379"
attach: false
restart: unless-stopped
volumes:
- data:/redis
networks:
- world-engine
celestia-devnet:
container_name: celestia-devnet
image: ghcr.io/rollkit/local-celestia-devnet:latest
networks:
- world-engine
restart: on-failure
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:26659/head" ]
interval: 1s
timeout: 1s
retries: 20
ports:
- "26657"
- "26658"
- "26659"
- "9090"
volumes:
data:
networks:
world-engine:
driver: bridge