|
|
|
@ -53,3 +53,43 @@ services: |
|
|
|
- RAILS_MASTER_KEY=${WEB_RAILS_MASTER_KEY} |
|
|
|
- RAILS_MASTER_KEY=${WEB_RAILS_MASTER_KEY} |
|
|
|
- RAILS_LOG_TO_STDOUT=true |
|
|
|
- RAILS_LOG_TO_STDOUT=true |
|
|
|
- PORT=80 |
|
|
|
- PORT=80 |
|
|
|
|
|
|
|
worker: |
|
|
|
|
|
|
|
restart: ${WEB_RESTART_MODE} |
|
|
|
|
|
|
|
image: tenshiamd/ruby:2.7-alpine |
|
|
|
|
|
|
|
command: | |
|
|
|
|
|
|
|
bash -c 'bash -s <<EOF |
|
|
|
|
|
|
|
bundle check || bundle install |
|
|
|
|
|
|
|
bundle exec rake db:migrate |
|
|
|
|
|
|
|
bundle exec foreman start -f Procfile-worker |
|
|
|
|
|
|
|
EOF' |
|
|
|
|
|
|
|
volumes_from: |
|
|
|
|
|
|
|
- data |
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- solr |
|
|
|
|
|
|
|
- redis |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
- RAILS_ENV=${WEB_RAILS_ENV} |
|
|
|
|
|
|
|
- RAILS_MASTER_KEY=${WEB_RAILS_MASTER_KEY} |
|
|
|
|
|
|
|
- RAILS_LOG_TO_STDOUT=true |
|
|
|
|
|
|
|
- PORT=80 |
|
|
|
|
|
|
|
- SIDEKIQ_QUEUES=-q default,2 -q mailers,1 -q active_storage_analysis,1 -q active_storage_purge,1 |
|
|
|
|
|
|
|
worker_solr: |
|
|
|
|
|
|
|
restart: ${WEB_RESTART_MODE} |
|
|
|
|
|
|
|
image: tenshiamd/ruby:2.7-alpine |
|
|
|
|
|
|
|
command: | |
|
|
|
|
|
|
|
bash -c 'bash -s <<EOF |
|
|
|
|
|
|
|
bundle check || bundle install |
|
|
|
|
|
|
|
bundle exec rake db:migrate |
|
|
|
|
|
|
|
bundle exec foreman start -f Procfile-worker |
|
|
|
|
|
|
|
EOF' |
|
|
|
|
|
|
|
volumes_from: |
|
|
|
|
|
|
|
- data |
|
|
|
|
|
|
|
depends_on: |
|
|
|
|
|
|
|
- solr |
|
|
|
|
|
|
|
- redis |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
- RAILS_ENV=${WEB_RAILS_ENV} |
|
|
|
|
|
|
|
- RAILS_MASTER_KEY=${WEB_RAILS_MASTER_KEY} |
|
|
|
|
|
|
|
- RAILS_LOG_TO_STDOUT=true |
|
|
|
|
|
|
|
- PORT=80 |
|
|
|
|
|
|
|
- SIDEKIQ_QUEUES=-q sunspot_index,2 |
|
|
|
|