-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.49 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
name: usecannon
services:
# redis database image, used by indexer and api
redis:
image: redis/redis-stack:7.4.0-v1
restart: always
ports:
- '6379:6379'
- '8001:8001'
command: redis-stack-server --save 60 1 --loglevel warning
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 5
# supersim spins up the necessary OPs chains for the registry, and makes
# sure all cross chain messaging works.
# registry:
# image: ghcr.io/usecannon/supersim:0.1.0-alpha.25
# restart: always
# environment:
# ANVIL_IP_ADDR: 0.0.0.0
# ports:
# - '0.0.0.0:8545:8545' # L1
# - '0.0.0.0:9545:9545' # L2
# command: --interop.autorelay
# Deploy the registry on L1
registry:
restart: always
image: node:22.11.0-alpine
# command: npx -y @usecannon/cli build registry --wipe --rpc-url https://registry:8545
command: |
curl -L https://foundry.paradigm.xyz | bash
PATH="/root/.foundry/bin:${PATH}"
foundryup --version nightly-fdd321bac95f0935529164a88faf99d4d5cfa321
DEBUG=cannon* npx -y @usecannon/cli run registry --anvil.host 0.0.0.0 --anvil.port 8545 --anvil.chain-id 1
ports:
- '0.0.0.0:8545:8545' # L1
repo:
build:
context: .
dockerfile: docker/repo.Dockerfile
restart: always
depends_on:
- redis
environment:
REDIS_URL: redis://redis:6379
UPSTREAM_IPFS_URL: http://localhost:9095
ports:
- '3000:3000'