forked from 0xProject/0x-event-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
39 lines (39 loc) · 1.08 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
version: '3'
services:
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=api
- POSTGRES_PASSWORD=api
- POSTGRES_DB=events
- POSTGRES_PORT=5432
# persist the postgres data to disk so we don't lose it
# on rebuilds.
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- '5432:5432'
event-pipeline:
depends_on:
- postgres
build:
context: .
dockerfile: event-pipeline/Dockerfile
restart: always
environment:
ETHEREUM_RPC_URL: '${ETHEREUM_RPC_URL}'
CHAIN_ID: '${CHAIN_ID}'
POSTGRES_URI: 'postgres://api:api@postgres/events'
ports:
- '3000:3000'
staking-api:
depends_on:
- event-pipeline
build:
context: .
dockerfile: staking-api/Dockerfile
restart: always
environment:
POSTGRES_URI: 'postgres://api:api@postgres/events'
ports:
- '4000:4000'