ci: updated dockerfile

This commit is contained in:
Marvin Zhang
2024-11-24 17:47:29 +08:00
parent cd429d4e05
commit c337bf0f9c
4 changed files with 17 additions and 32 deletions

View File

@@ -1,6 +1,12 @@
#!/bin/bash
# replace default api path to new one
python /app/bin/update_docker_js_api_address.py
if [ "${CRAWLAB_MASTER_NODE}" == "Y" ]; then
# Replace default api path to new one
python /app/bin/update_docker_js_api_address.py
# Start nginx
service nginx start
fi
# Start backend
crawlab-server server

Binary file not shown.

View File

@@ -10,12 +10,7 @@ services:
- "8080:8080"
depends_on:
- mongo
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 5
worker:
image: ghcr.io/crawlab-team/crawlab:${CRAWLAB_TAG:-develop}
container_name: crawlab_ghcr_worker
@@ -24,11 +19,6 @@ services:
CRAWLAB_MASTER_HOST: "master"
depends_on:
- master
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 5
mongo:
image: mongo:5