Merge pull request #13 from dirtydishes/lavender/prepare-docker-deployment
add docker deployment assets for the full stack
This commit is contained in:
commit
d820fb9e13
1 changed files with 33 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue