-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
125 lines (119 loc) · 2.82 KB
/
compose.yaml
File metadata and controls
125 lines (119 loc) · 2.82 KB
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
services:
db:
image: postgres:latest
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PW}
- POSTGRES_DB=${POSTGRES_DB} #optional (specify default database instead of $POSTGRES_DB)
ports:
- '5432:5432'
restart: always
networks:
- pacmonnet
volumes:
- postgresdata:/var/lib/postgresql/data
redis:
image: 'bitnami/redis:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '6379:6379'
restart: always
networks:
- pacmonnet
volumes:
- redisdata:/bitnami/redis/data
erigon:
# image: thorax/erigon:latest
build:
context: erigon
dockerfile: erigon.Dockerfile
ports:
- '8551:8551'
restart: unless-stopped
command:
- --datadir=dev
- --chain=dev
- --private.api.addr=0.0.0.0:9090
- --mine
networks:
- pacmonnet
volumes:
- erigondata:/app/dev
erigonrpc:
# image: thorax/erigon:latest
build:
context: erigon
dockerfile: rpcdaemon.Dockerfile
ports:
- '8545:8545'
pid: service:erigon
depends_on:
- erigon
restart: always
command:
- --datadir=dev
- --http.addr=0.0.0.0
- --private.api.addr=erigon:9090
- --http.api=eth,erigon,ots,web3,net,debug,trace,txpool,parity
- --http.trace
- --http.vhosts=any
- --http.corsdomain=*
- --ws
networks:
- pacmonnet
volumes:
- erigondata:/app/dev
otterscan:
image: otterscan/otterscan:latest
container_name: otterscan
environment:
- ERIGON_URL=${PUBLIC_RPC_URL}
ports:
- '5100:80'
restart: always
depends_on:
- erigonrpc
networks:
- pacmonnet
app:
build:
context: .
args:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PW}@db:5432/${POSTGRES_DB}?schema=public
environment:
- APP_PORT=3000
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PW=${POSTGRES_PW}
- POSTGRES_DB=postgres
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PW}@db:5432/${POSTGRES_DB}?schema=public
- PRIVATE_RPC_URL=http://erigonrpc:8545
- PUBLIC_RPC_URL=${PUBLIC_RPC_URL}
- REDIS_URL=redis://redis:6379
- GITHUB_PLUGIN_OWNER=${GITHUB_PLUGIN_OWNER}
- GITHUB_PLUGIN_REPO=${GITHUB_PLUGIN_REPO}
- GITHUB_PLUGIN_PATH=${GITHUB_PLUGIN_PATH}
- GITHUB_ACCESS_TOKEN=${GITHUB_ACCESS_TOKEN}
ports:
- '3033:3000'
restart: always
depends_on:
- db
- redis
- erigonrpc
networks:
- pacmonnet
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
postgresdata:
driver: local
redisdata:
driver: local
erigondata:
name: erigondata
external: true
networks:
pacmonnet:
name: pacmonnet
external: true