-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (66 loc) · 1.98 KB
/
docker-compose.yml
File metadata and controls
70 lines (66 loc) · 1.98 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
services:
dripfeed:
container_name: dripfeed_container
build:
context: .
dockerfile: Dockerfile
args:
- SKIP_BUILD=true
entrypoint: ['npm', 'run', 'dev']
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER:-user}:${POSTGRES_PASSWORD:-admin}@postgres:5432/${POSTGRES_DB:-dripfeeddb}
- DB_SCHEMA=${DB_SCHEMA:-public}
- NETWORK=${NETWORK:-sepolia}
- RPC_URL=${RPC_URL}
- RPC_ACCESS_TOKEN=${RPC_ACCESS_TOKEN}
- CONFIRMATIONS=${CONFIRMATIONS:-1}
- FETCH_BATCH_SIZE=${FETCH_BATCH_SIZE:-100}
- INSERT_CHUNK_SIZE=${INSERT_CHUNK_SIZE:-1000}
- PROCESS_BATCH_SIZE=${PROCESS_BATCH_SIZE:-100}
- POLL_DELAY=${POLL_DELAY:-12000}
- MAX_CONSECUTIVE_ERRORS=${MAX_CONSECUTIVE_ERRORS:-10}
- RPC_CONCURRENCY=${RPC_CONCURRENCY:-10}
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
- LOG_PRETTY=${LOG_PRETTY:-true}
- IPFS_GATEWAY_URL=${IPFS_GATEWAY_URL:-https://drips.mypinata.cloud}
- CACHE_INVALIDATION_ENDPOINT=${CACHE_INVALIDATION_ENDPOINT}
volumes:
- .:/app
- /app/node_modules
networks:
- backend
depends_on:
- postgres
postgres:
image: postgres:latest
container_name: postgres_container
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-admin}
POSTGRES_DB: ${POSTGRES_DB:-dripfeeddb}
POSTGRES_INITDB_ARGS: -E UTF8 --locale=C
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- '54321:5432'
networks:
- backend
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin_container
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL:-admin@admin.com}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-admin}
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- '5051:80'
networks:
- backend
volumes:
postgres_data:
pgadmin_data:
networks:
backend: