forked from checkinholiday/Temp-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (81 loc) · 1.84 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
81
82
83
84
85
86
87
version: '3.9'
services:
indexer:
build:
context: .
dockerfile: indexer.Dockerfile
volumes:
- ./indexer:/app
environment:
- PG_HOST=postgres
- PG_PORT=5432
- PG_DATABASE=mydb
- PG_USER=myuser
- PG_PASSWORD=mypassword
depends_on:
- postgres
restart: unless-stopped
log_engine:
build:
context: .
dockerfile: log_engine.Dockerfile
volumes:
- ./log_engine:/app
environment:
- PG_HOST=postgres
- PG_PORT=5432
- PG_DATABASE=mydb
- PG_USER=myuser
- PG_PASSWORD=mypassword
- RUNNER_ID=1
- CONTRACT_ADDRESS=0x8EFa3E7bE538B07F3a80705E0d454384d0CbccF1
- PROVIDER_URL=https://rpc2.sepolia.org
depends_on:
- postgres
restart: unless-stopped
# ohlc-builder:
# build:
# context: .
# dockerfile: ohlc-builder.Dockerfile
# volumes:
# - ./ohlc-builder:/app
# environment:
# - PG_HOST=postgres
# - PG_PORT=5432
# - PG_DATABASE=mydb
# - PG_USER=myuser
# - PG_PASSWORD=mypassword
# depends_on:
# - postgres
# restart: unless-stopped
# frontend-api:
# build:
# context: .
# dockerfile: frontend-api.Dockerfile
# volumes:
# - ./frontend-api:/app
# environment:
# - OHLC_HOST=ohlc-builder
# - OHLC_PORT=3002
# - PG_HOST=postgres
# - PG_PORT=5432
# - PG_DATABASE=mydb
# - PG_USER=myuser
# - PG_PASSWORD=mypassword
# ports:
# - "3000:3000"
# depends_on:
# - ohlc-builder
# - postgres
# restart: unless-stopped
postgres:
image: postgres:13
environment:
- POSTGRES_DB=mydb
- POSTGRES_USER=myuser
- POSTGRES_PASSWORD=mypassword
volumes:
- dbdata:/var/lib/postgresql/data
restart: unless-stopped
volumes:
dbdata: