mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
ci: updated dockerfile
This commit is contained in:
@@ -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.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user