Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a9452ba

Browse files
author
gregnuj
committedMay 9, 2023
create v2.3.1
1 parent f2e80ce commit a9452ba

File tree

3 files changed

+96
-7
lines changed

3 files changed

+96
-7
lines changed
 

‎.envrc_sample

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
export TYPEORM_CONNECTION=postgres
44
export TYPEORM_HOST=localhost
55
export TYPEORM_USERNAME=terra
6-
export TYPEORM_PASSWORD=terra
7-
export TYPEORM_DATABASE=terra_fcd
6+
export TYPEORM_PASSWORD=abc123
7+
export TYPEORM_DATABASE=fcd
88
export TYPEORM_PORT=5432
99
export TYPEORM_SYNCHRONIZE=false
1010
export TYPEORM_LOGGING=false
1111
export TYPEORM_ENTITIES=src/orm/*Entity.ts
1212
export TYPEORM_MIGRATIONS=src/orm/migration/*.ts
1313

1414
export SERVER_PORT=3060
15-
export CHAIN_ID=tequila-0004
16-
export LCD_URI=https://tequila-lcd.terra.dev
17-
export FCD_URI=https://tequila-fcd.terra.dev
18-
export RPC_URI=
15+
export CHAIN_ID=localterra
16+
export LCD_URI=http://localhost:1317
17+
export FCD_URI=http://localhost:3060
18+
export RPC_URI=http://localhost:26657
1919
export SENTRY_DSN=
2020
#export USE_LOG_FILE=true

‎docker-compose.yml

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
version: "3.8"
2+
3+
x-fcd-env: &fcd-env
4+
- CHAIN_ID=localterra
5+
- LCD_URI=http://terrad:1317
6+
- RPC_URI=http://terrad:26657
7+
- USE_LOG_FILE=true
8+
- TYPEORM_CONNECTION=postgres
9+
- TYPEORM_HOST=postgres
10+
- TYPEORM_USERNAME=terra
11+
- TYPEORM_PASSWORD=abc123
12+
- TYPEORM_DATABASE=fcd
13+
- TYPEORM_SYNCHRONIZE=true
14+
- TYPEORM_LOGGING=false
15+
- TYPEORM_ENTITIES=src/orm/*Entity.ts
16+
- LEGACY_NETWORK=false
17+
18+
services:
19+
fcd-collector:
20+
build:
21+
context: .
22+
dockerfile: Dockerfile
23+
args:
24+
TERRA_VERSION: ${TERRA_VERSION}
25+
image: ghcr.io/terra-money/fcd:${TERRA_VERSION}
26+
container_name: localterra-fcd-collector
27+
hostname: fcd-collector
28+
command: collector
29+
restart: unless-stopped
30+
environment: *fcd-env
31+
volumes:
32+
- ./logs:/app/logs
33+
networks:
34+
- localterra
35+
36+
fcd-api:
37+
build:
38+
context: .
39+
dockerfile: Dockerfile
40+
args:
41+
TERRA_VERSION: ${TERRA_VERSION}
42+
image: ghcr.io/terra-money/fcd:${TERRA_VERSION}
43+
container_name: localterra-fcd-api
44+
hostname: fcd-api
45+
command: start
46+
environment: *fcd-env
47+
volumes:
48+
- ./logs:/app/logs
49+
networks:
50+
- localterra
51+
ports:
52+
- 3060:3060
53+
54+
terrad:
55+
image: ghcr.io/terra-money/localterra:${TERRA_VERSION}
56+
container_name: localterra-terrad
57+
hostname: terrad
58+
pull_policy: always
59+
volumes:
60+
- localterra:/app
61+
networks:
62+
- localterra
63+
ports:
64+
- "1317:1317"
65+
- "9090:9090"
66+
- "9091:9091"
67+
- "26657:26657"
68+
69+
postgres:
70+
image: postgres:14-alpine
71+
container_name: localterra-postgres
72+
hostname: postgres
73+
environment:
74+
POSTGRES_USER: terra
75+
POSTGRES_PASSWORD: abc123
76+
volumes:
77+
- ./initdb.d:/docker-entrypoint-initdb.d
78+
- pgdata:/var/lib/postgresql/data
79+
networks:
80+
- localterra
81+
ports:
82+
- 5433:5432
83+
84+
volumes:
85+
localterra:
86+
pgdata:
87+
88+
networks:
89+
localterra:

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fcd",
3-
"version": "2.0.6",
3+
"version": "2.3.1",
44
"description": "Terra FCD Suite",
55
"main": "index.js",
66
"author": "Terra Engineering <engineering@terra.money>",

0 commit comments

Comments
 (0)
Please sign in to comment.