Skip to content

Commit

Permalink
adjust docker compose to use the startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Oct 3, 2023
1 parent 22a3b4f commit 64d9281
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ services:

web:
<<: *app
# Uncomment command to access container with out starting Rails. Useful for debugging
# Uncomment command to access container with out starting bin/web. Useful for debugging
# command: sleep infinity
environment:
- VIRTUAL_PORT=3000
Expand Down Expand Up @@ -167,6 +167,8 @@ services:
worker:
<<: *app
image: ghcr.io/samvera/hyku/worker:${TAG:-latest}
# Uncomment command to access container with out starting bin/worker. Useful for debugging
# command: sleep infinity
build:
context: .
target: hyku-worker
Expand All @@ -176,15 +178,6 @@ services:
- ghcr.io/samvera/hyku/base:latest
- ghcr.io/samvera/hyku:latest
- ghcr.io/samvera/hyku/worker:latest
command:
- /bin/sh
- -c
- >
if [ "$$HYRAX_ACTIVE_JOB_QUEUE" == "good_job" ]; then
exec bundle exec good_job start
else
exec bundle exec sidekiq
fi
depends_on:
check_volumes:
condition: service_completed_successfully
Expand Down

0 comments on commit 64d9281

Please sign in to comment.