Merge pull request #13 from dirtydishes/lavender/prepare-docker-deployment

add docker deployment assets for the full stack
This commit is contained in:
dirtydishes 2026-04-04 04:03:16 -04:00 committed by GitHub
commit d820fb9e13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,9 +11,12 @@ x-service-common: &service-common
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
depends_on: depends_on:
- nats nats:
- clickhouse condition: service_started
- redis clickhouse:
condition: service_healthy
redis:
condition: service_healthy
services: services:
web: web:
@ -88,9 +91,12 @@ services:
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
depends_on: depends_on:
- nats nats:
- clickhouse condition: service_started
- redis clickhouse:
condition: service_healthy
redis:
condition: service_healthy
command: ["services/ingest-options/src/index.ts"] command: ["services/ingest-options/src/index.ts"]
ingest-equities: ingest-equities:
@ -111,6 +117,16 @@ services:
hard: 262144 hard: 262144
volumes: volumes:
- clickhouse-data:/var/lib/clickhouse - clickhouse-data:/var/lib/clickhouse
healthcheck:
test:
[
"CMD-SHELL",
"wget -qO- http://127.0.0.1:8123/ping | grep -q Ok."
]
interval: 10s
timeout: 5s
retries: 12
start_period: 20s
redis: redis:
image: redis:7.2 image: redis:7.2
@ -118,6 +134,17 @@ services:
command: ["redis-server", "--appendonly", "yes"] command: ["redis-server", "--appendonly", "yes"]
volumes: volumes:
- redis-data:/data - redis-data:/data
healthcheck:
test:
[
"CMD",
"redis-cli",
"ping"
]
interval: 10s
timeout: 5s
retries: 10
start_period: 5s
nats: nats:
image: nats:2.10 image: nats:2.10