-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
51 lines (51 loc) · 1.06 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
version: "3.4"
services:
indexer:
restart: always
build:
context: .
dockerfile: ./cmd/indexer/Dockerfile
working_dir: /cmd
depends_on:
- pg
- redis
entrypoint: ./indexer
environment:
RPC_ENDPOINT: ${RPC_ENDPOINT}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_HOST: pg
POSTGRES_PORT: 5432
REDIS_ADDR: redis:6379
ports:
- 5001:5001
rest:
restart: always
build:
context: .
dockerfile: ./cmd/rest/Dockerfile
working_dir: /cmd
depends_on:
- indexer
entrypoint: ./rest
environment:
INDEXER_ADDR: indexer:5001
ports:
- 8080:8080
pg:
image: postgres
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- 5627:5432
redis:
image: "redis:alpine"
restart: always
volumes:
pgdata: