-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
80 lines (74 loc) · 1.61 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
version: "3"
services:
web:
build:
context: ./docker/backend
dockerfile: Dockerfile.dev
restart: unless-stopped
ports:
- "3030:3030"
volumes:
- "~/.cargo:/home/app/.cargo"
- ".:/app"
environment:
CARGO_HOME: /home/app/.cargo
depends_on:
- frontend
- scanner
- geth
- redis
command: cargo make web
scanner:
build:
context: ./docker/backend
dockerfile: Dockerfile.dev
restart: unless-stopped
volumes:
- "~/.cargo:/home/app/.cargo"
- ".:/app"
environment:
CARGO_HOME: /home/app/.cargo
depends_on:
- geth
- redis
command: cargo make scanner
frontend:
build:
context: ./docker/frontend
dockerfile: Dockerfile.dev
volumes:
- "~/.cargo:/home/app/.cargo"
- "./frontend:/app"
ports:
- "8080:8080"
environment:
CARGO_HOME: /home/app/.cargo
geth:
image: ethereum/client-go:alltools-v1.10.7
restart: unless-stopped
ports:
- "30303:30303"
- "30303:30303/udp"
- "8545:8545"
- "8546:8546"
volumes:
- "geth_data:/root"
depends_on:
- redis
command: geth --syncmode "light" --http --http.addr "0.0.0.0" --http.api "eth,net,web3,txpool" --rpcvhosts=*
logging:
driver: none
redis:
image: docker.io/bitnami/redis:6.2
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
ports:
- "6901:6379"
volumes:
- "redis_data:/bitnami/redis/data"
volumes:
geth_data:
driver: local
redis_data:
driver: local