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:
Anis Khalfallah 2024-04-03 21:28:51 +02:00 committed by GitHub
parent 5a1f39d076
commit 0c0f303a11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 27 additions and 0 deletions

View File

@ -49,6 +49,33 @@ services:
- ./:/app
labels:
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:
container_name: worker
build: