-
Notifications
You must be signed in to change notification settings - Fork 127
Description
I am trying to integrate histomicsTK with my histomisui deployment but being failed multiple times
docker-compose.yaml:
services:
____________________________________________________________________________
histomicsui-dev:
image: magicscan/histomicsui
build: histomicsui
profiles: ["dev"]
network_mode: "host"
volumes:
- ./girder-dev.cfg:/etc/girder.cfg
- ./homepage.md:/root/homepage.md
- ./README.md:/root/README.md
- ./setup.py:/root/setup.py
- ./docs:/root/docs
- ./scripts:/root/scripts
- ./yaml:/root/yaml
- ./large_image_source_openvisus/init.py:/usr/local/lib/python3.10/site-packages/large_image_source_openvisus/init.py
- ./large_image_source_openvisus/girder_source.py:/usr/local/lib/python3.10/site-packages/large_image_source_openvisus/girder_source.py
..........
Message queue for communication between Girder and the Worker
rabbitmq:
image: rabbitmq:3-management
profiles: ["dev", "production"]
restart: unless-stopped
network_mode: "host"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
volumes:
- rabbitmq_data:/var/lib/rabbitmq
____________________________________________________________________________
Worker to run background analysis jobs like Slicer CLIs
girder-worker:
image: magicscan/histomicsui
build: histomicsui
profiles: ["dev"]
restart: unless-stopped
depends_on:
- rabbitmq
network_mode: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./girder-dev.cfg:/etc/girder.cfg # ADDED: Same config as main service
environment:
- GW_DIRECT_PATHS=true
- C_FORCE_ROOT=1 # Needed for running as root in Docker
# Use container name instead of localhost
- CELERY_BROKER_URL=amqp://guest:guest@localhost:5672//
- CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP=True
- CELERY_BROKER_CONNECTION_RETRY=True
- CELERY_BROKER_CONNECTION_MAX_RETRIES=10
command: girder-worker -l info --concurrency=2
volumes:
rabbitmq_data:
girder-dev.cfg:
[global]
server.socket_host = "0.0.0.0"
server.socket_port = 8081
server.max_request_body_size = 1073741824
[database]
uri = "mongodb+srv://........"
[worker]
Tells Girder to use RabbitMQ to send and receive jobs
backend = "rabbitmq"
amqp_url = "amqp://guest:guest@localhost:5672/"
broker_connection_retry_on_startup = True
broker_connection_retry = True
broker_connection_max_retries = 10
broker_heartbeat = 30
[slicer_cli_web]
Tells the Slicer CLI plugin to send tasks to the Girder Worker
task_mode = "girder_worker"
task_timeout = 3600
girder_api_url = "http://localhost:8081/api/v1"
girder_token = ""
can not fix the error, help will be appreciated!