-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
80 lines (71 loc) · 1.7 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
version: '3.8'
x-fcd-env: &fcd-env
- CHAIN_ID=localterra
- LCD_URI=http://terrad:8080
- RPC_URI=http://terrad:26657
- USE_LOG_FILE=false
- TYPEORM_CONNECTION=postgres
- TYPEORM_HOST=fcd_postgres
- TYPEORM_USERNAME=${TYPEORM_USERNAME:-terra}
- TYPEORM_PASSWORD=${TYPEORM_PASSWORD:-abc123}
- TYPEORM_DATABASE=${TYPEORM_DATABASE:-fcd}
- TYPEORM_SYNCHRONIZE=true
- TYPEORM_LOGGING=false
- TYPEORM_ENTITIES=src/orm/*Entity.ts
- LEGACY_NETWORK=false
services:
terrad:
image: ghcr.io/terra-money/localterra:${TERRA_VERSION}
hostname: terrad
volumes:
- terra:/app
networks:
- default
ports:
- "1317:1317"
- "8080:8080"
- "9090:9090"
- "9091:9091"
- "26657:26657"
fcd_postgres:
image: postgres:14-alpine
hostname: fcd_postgres
command: postgres -p ${FCD_DB_PORT:-5432}
environment:
POSTGRES_USER: ${FCD_POSTGRES_USER:-terra}
POSTGRES_PASSWORD: ${FCD_POSTGRES_PASSWORD:-abc123}
POSTGRES_DB: ${FCD_POSTGRES_DB:-fcd}
volumes:
- fcd_data:/var/lib/postgresql/data
networks:
- default
ports:
- ${FCD_DB_PORT:-5432}:${FCD_DB_PORT:-5432}
fcd_collector:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/terra-money/fcd:${TERRA_VERSION}
hostname: fcd_collector
command: collector
restart: unless-stopped
environment: *fcd-env
networks:
- default
fcd_api:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/terra-money/fcd:${TERRA_VERSION}
hostname: fcd_api
command: start
environment: *fcd-env
networks:
- default
ports:
- 3060:3060
volumes:
terra:
fcd_data:
networks:
default: