-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
58 lines (52 loc) Β· 1.18 KB
/
docker-compose.yaml
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
name: web3app
configs:
proxy_config:
content: |
providers:
web3-rpc-provider:
url: "http://provider:3000/endpoints"
sources:
- ChainList
logger:
level: info
services:
# Enable when you need tenant isolation and rate limiting
# postgres:
# image: postgres:16.4-alpine
# environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: "123456"
# POSTGRES_DB: web3_rpc_proxy_db
# networks: [app-bridge]
# ports: [5432:5432]
# Enable when you need tenant isolation and rate limiting
# redis:
# image: redis:7.4.0-alpine
# ports: [6379:6379]
# networks: [app-bridge]
# Provides the free web3 rpc
provider:
image: dodozoo/we3-rpc-provider:v1.0.0
networks: [app-bridge]
ports: [3000:3000]
proxy:
build:
context: .
dockerfile: Dockerfile
configs:
- source: proxy_config
target: /app/config/default.yaml
mode: 0666
depends_on:
- provider
# - postgres
# - redis
links:
- provider
# - postgres
# - redis
networks: [app-bridge]
ports: [8080:8080]
networks:
app-bridge:
driver: bridge