Add capture's container from /capture (#1001)
* Modified docker-compose.yml to include capture from /capture Signed-off-by: Anis Khalfallah <khafallah.anis@hotmail.com> * Update capture's container to include health checks via /health api * refine capure docker service --------- Signed-off-by: Anis Khalfallah <khafallah.anis@hotmail.com> Co-authored-by: Anis Khalfallah <khafallah.anis@hotmail.com> Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
This commit is contained in:
parent
5a1f39d076
commit
0c0f303a11
@ -49,6 +49,33 @@ services:
|
|||||||
- ./:/app
|
- ./:/app
|
||||||
labels:
|
labels:
|
||||||
CONNECT: "localhost:3000"
|
CONNECT: "localhost:3000"
|
||||||
|
capture:
|
||||||
|
container_name: capture
|
||||||
|
build:
|
||||||
|
context: ./capture
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
app:
|
||||||
|
condition: service_healthy
|
||||||
|
restart: true
|
||||||
|
profiles:
|
||||||
|
- capture
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:5678/health"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 10
|
||||||
|
start_period: 1m
|
||||||
|
env_file: .env.development
|
||||||
|
environment:
|
||||||
|
# configure to screenshot production, because local dev is too slow
|
||||||
|
- CAPTURE_URL=http://stacker.news
|
||||||
|
expose:
|
||||||
|
- "5678"
|
||||||
|
ports:
|
||||||
|
- "5678:5678"
|
||||||
|
labels:
|
||||||
|
CONNECT: "localhost:5678"
|
||||||
worker:
|
worker:
|
||||||
container_name: worker
|
container_name: worker
|
||||||
build:
|
build:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user