2023-02-15 08:05:43 +01:00
|
|
|
version: "3.9"
|
2022-11-30 10:51:24 +01:00
|
|
|
services:
|
|
|
|
redis:
|
2023-03-16 08:34:29 +01:00
|
|
|
image: redis:7-alpine
|
2022-11-30 10:51:24 +01:00
|
|
|
restart: unless-stopped
|
2022-12-01 10:50:50 +01:00
|
|
|
command: redis-server --save 60 1 --loglevel warning
|
|
|
|
volumes:
|
|
|
|
- cic-custodial-redis:/data
|
2022-11-30 10:51:24 +01:00
|
|
|
ports:
|
2023-02-15 08:05:43 +01:00
|
|
|
- "127.0.0.1:6379:6379"
|
2022-12-01 10:19:47 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
2023-02-15 08:05:43 +01:00
|
|
|
retries: 5
|
2022-11-30 10:51:24 +01:00
|
|
|
postgres:
|
|
|
|
image: postgres:14-alpine
|
|
|
|
restart: unless-stopped
|
2022-12-01 10:19:47 +01:00
|
|
|
user: postgres
|
2022-11-30 10:51:24 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
volumes:
|
2022-12-01 10:50:50 +01:00
|
|
|
- cic-custodial-pg:/var/lib/postgresql/data
|
2023-03-16 08:34:29 +01:00
|
|
|
- ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
|
2022-11-30 10:51:24 +01:00
|
|
|
ports:
|
2023-02-15 08:05:43 +01:00
|
|
|
- "127.0.0.1:5432:5432"
|
2022-12-01 10:19:47 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2023-02-15 08:05:43 +01:00
|
|
|
nats:
|
|
|
|
image: nats:2.9
|
|
|
|
restart: unless-stopped
|
|
|
|
command: "-js -sd /nats/data"
|
|
|
|
volumes:
|
|
|
|
- cic-custodial-nats:/nats/data
|
|
|
|
ports:
|
2023-03-16 08:34:29 +01:00
|
|
|
- "127.0.0.1:4222:4222"
|
|
|
|
- "127.0.0.1:8222:8222"
|
2022-11-30 10:51:24 +01:00
|
|
|
asynqmon:
|
|
|
|
image: hibiken/asynqmon
|
|
|
|
restart: unless-stopped
|
2023-01-09 13:30:24 +01:00
|
|
|
environment:
|
|
|
|
- REDIS_ADDR=redis:6379
|
2022-11-30 10:51:24 +01:00
|
|
|
ports:
|
2023-02-15 08:05:43 +01:00
|
|
|
- "127.0.0.1:8080:8080"
|
2022-12-01 10:19:47 +01:00
|
|
|
depends_on:
|
2023-02-15 08:05:43 +01:00
|
|
|
redis:
|
2022-12-01 10:19:47 +01:00
|
|
|
condition: service_healthy
|
2023-03-16 08:34:29 +01:00
|
|
|
cic-chain-events:
|
|
|
|
image: ghcr.io/grassrootseconomics/cic-chain-events/cic-chain-events:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- events.env
|
|
|
|
ports:
|
|
|
|
- '127.0.0.1:5001:5000'
|
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
2022-11-30 10:51:24 +01:00
|
|
|
volumes:
|
2022-12-01 10:50:50 +01:00
|
|
|
cic-custodial-pg:
|
2022-11-30 10:51:24 +01:00
|
|
|
driver: local
|
2022-12-01 10:50:50 +01:00
|
|
|
cic-custodial-redis:
|
2023-02-15 08:05:43 +01:00
|
|
|
driver: local
|
|
|
|
cic-custodial-nats:
|
|
|
|
driver: local
|