-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.35 KB
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
version: '3.8'
services:
postgres_db:
image: postgres:16
hostname: postgres
restart: always
container_name: verity-near-indexer-pg
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
PGDATA: /var/lib/postgresql/data/pgdata
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 15s
timeout: 10s
retries: 5
ports:
- "5432:5432"
networks:
- xnfts-network
volumes:
- postgres-near-indexer:/var/lib/postgresql/data
app:
build:
dockerfile: ./src/near_indexer/Dockerfile
context: .
container_name: verity-near-indexer-app
environment:
DATABASE_URL: ${DATABASE_URL}
RUST_LOG: debug
RUST_BACKTRACE: 1
networks:
- xnfts-network
depends_on:
postgres_db:
condition: service_healthy
volumes:
- .:/app
command: >
sh -c "
indexer
"
bitte_plugin:
build:
dockerfile: ./src/bitte_plugin/Dockerfile
context: .
container_name: verity-near-bitte-app
env_file:
- ./src/bitte_plugin/.env
ports:
- "8007:8007"
volumes:
- .:/bitte_plugin
command: >
sh -c "bitte_plugin"
volumes:
postgres-near-indexer:
networks:
xnfts-network:
driver: bridge