You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
1.1 KiB

version: "2"
services:
data:
image: busybox
volumes:
- .:/var/www
- ./../../shared/bundle:/bundle
- ./../../shared/.bundle:/var/www/.bundle
- ./../../shared/public/assets:/var/www/public/assets
- ./../../shared/public/system:/var/www/public/system
- ./../../shared/storage:/var/www/storage
- ./../../shared/tmp:/var/www/tmp
- ./../../shared/tmp/pids:/var/www/tmp/pids
- ./../../shared/vendor/bundle:/var/www/vendor/bundle
- ./../../shared/node_modules:/var/www/node_modules
solr:
image: tenshiamd/solr:5-alpine
ports:
- ${SOLR_PORT}:8983
volumes:
- ./../../shared/solr:/var/lib/solr
web:
restart: ${WEB_RESTART_MODE}
image: tenshiamd/ruby:2.6-alpine
command: |
bash -c 'bash -s <<EOF
bundle check || bundle install
bundle exec rake db:migrate
bundle exec foreman start -f Procfile
EOF'
volumes_from:
- data
environment:
- RAILS_ENV=${WEB_RAILS_ENV}
- RAILS_MASTER_KEY=${WEB_RAILS_MASTER_KEY}
- RAILS_LOG_TO_STDOUT=true
- PORT=80