feat: add docker-compose files
This commit is contained in:
commit
ca6d6cb06d
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
stack.env
|
71
docker-compose.yaml
Normal file
71
docker-compose.yaml
Normal file
@ -0,0 +1,71 @@
|
||||
services:
|
||||
nats:
|
||||
image: nats:2
|
||||
restart: unless-stopped
|
||||
command: |
|
||||
-js
|
||||
-sd /nats/data
|
||||
-m 8222
|
||||
volumes:
|
||||
- nats-data:/nats/data
|
||||
ports:
|
||||
- 127.0.0.1:4222:4222
|
||||
- 127.0.0.1:8222:8222
|
||||
networks:
|
||||
- inethi
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
restart: unless-stopped
|
||||
user: postgres
|
||||
env_file:
|
||||
- stack.env
|
||||
volumes:
|
||||
- ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 127.0.0.1:5432:5432
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- inethi
|
||||
eth-tracker:
|
||||
image: ghcr.io/inethi/eth-tracker:v1.6.1-inethi-prefork
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
nats:
|
||||
condition: service_started
|
||||
env_file:
|
||||
- stack.env
|
||||
volumes:
|
||||
- tracker-data:/service/db
|
||||
ports:
|
||||
- 127.0.0.1:5001:5001
|
||||
networks:
|
||||
- inethi
|
||||
eth-indexer:
|
||||
image: ghcr.io/inethi/eth-indexer:v2.4.0-inethi
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
eth-tracker:
|
||||
condition: service_started
|
||||
env_file:
|
||||
- stack.env
|
||||
ports:
|
||||
- 127.0.0.1:5002:5002
|
||||
networks:
|
||||
- inethi
|
||||
|
||||
volumes:
|
||||
nats-data:
|
||||
driver: local
|
||||
postgres-data:
|
||||
driver: local
|
||||
tracker-data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
inethi:
|
||||
external: true
|
1
init_db.sql
Normal file
1
init_db.sql
Normal file
@ -0,0 +1 @@
|
||||
CREATE DATABASE chain_data;
|
Loading…
Reference in New Issue
Block a user