2023-01-05 12:45:09 +01:00
|
|
|
version: '3.9'
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:14-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
user: postgres
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- POSTGRES_USER=postgres
|
2023-01-06 12:32:20 +01:00
|
|
|
- POSTGRES_DB=cic_chain_events
|
2023-01-05 12:45:09 +01:00
|
|
|
volumes:
|
|
|
|
- cic-indexer-pg:/var/lib/postgresql/data
|
|
|
|
ports:
|
|
|
|
- '5432:5432'
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2023-01-12 11:31:29 +01:00
|
|
|
nats:
|
|
|
|
image: nats:2.9
|
|
|
|
restart: unless-stopped
|
|
|
|
command: "-js -sd /nats/data"
|
|
|
|
volumes:
|
|
|
|
- cic-indexer-nats:/nats/data
|
|
|
|
ports:
|
|
|
|
- '4222:4222'
|
|
|
|
- '8222:8222'
|
2023-01-05 12:45:09 +01:00
|
|
|
volumes:
|
|
|
|
cic-indexer-pg:
|
2023-01-12 11:31:29 +01:00
|
|
|
driver: local
|
|
|
|
cic-indexer-nats:
|
|
|
|
driver: local
|