cic-custodial/docker-compose.yaml

59 lines
1.3 KiB
YAML
Raw Normal View History

2022-12-01 09:09:46 +01:00
version: '3.9'
2022-11-30 10:51:24 +01:00
services:
redis:
image: redis:6-alpine
restart: unless-stopped
command: redis-server --save 60 1 --loglevel warning
volumes:
- cic-custodial-redis:/data
2022-11-30 10:51:24 +01:00
ports:
- '6379:6379'
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 10s
timeout: 5s
retries: 5
2022-11-30 10:51:24 +01:00
postgres:
image: postgres:14-alpine
restart: unless-stopped
user: postgres
2022-11-30 10:51:24 +01:00
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=cic_custodial
volumes:
- cic-custodial-pg:/var/lib/postgresql/data
2022-11-30 10:51:24 +01:00
ports:
- '5432:5432'
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
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:
2022-12-01 09:09:46 +01:00
- '8080:8080'
depends_on:
redis:
condition: service_healthy
2022-12-01 09:09:46 +01:00
cic-custodial:
image: ghcr.io/grassrootseconomics/cic-custodial/cic-custodial:latest
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
2022-12-01 09:09:46 +01:00
env_file:
- .env
ports:
- '5000:5000'
2022-11-30 10:51:24 +01:00
volumes:
cic-custodial-pg:
2022-11-30 10:51:24 +01:00
driver: local
cic-custodial-redis:
driver: local