From 783d34ad64ca673d6aacf4d50c640628a13221f2 Mon Sep 17 00:00:00 2001 From: Andre Date: Fri, 13 Oct 2023 22:53:47 -0300 Subject: [PATCH] Updated docker for M1 --- Dockerfile | 6 +- Gemfile | 76 ++++--- Gemfile.lock | 450 +++++++++++++++++++++------------------- config/puma.rb | 2 +- docker-compose.base.yml | 4 + docker-compose.yml | 4 +- 6 files changed, 282 insertions(+), 260 deletions(-) diff --git a/Dockerfile b/Dockerfile index d7d8602..f8df151 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM ruby:3.1.2-slim-buster +FROM ruby:3.1.2 WORKDIR /app -COPY Gemfile Gemfile.lock /app/ +COPY . . RUN apt-get update \ && apt-get install -y cmake \ @@ -11,5 +11,3 @@ RUN apt-get update \ RUN gem install bundler \ && bundle install --no-cache --jobs=4 --retry=3 - -COPY . . diff --git a/Gemfile b/Gemfile index e844b58..48bfd3e 100644 --- a/Gemfile +++ b/Gemfile @@ -5,55 +5,51 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '3.1.2' -gem 'bcrypt', '~> 3.1.18' -gem 'bootsnap', '>= 1.11.1', require: false -gem 'bunny', '~> 2.19.0' -gem 'httparty', '~> 0.20.0' -gem 'jsonapi.rb', '~> 2.0.0' -gem 'jwt', '~> 2.3.0' -gem 'keisan', '~> 0.9.1' -gem 'net-smtp', '0.3.1' -gem 'pg', '~> 1.3.5' -gem 'puma', '~> 5.6.4' -gem 'rack', '>= 2.2.3.1' +gem 'bcrypt' +gem 'bootsnap', require: false +gem 'bunny' +gem 'httparty' +gem 'jsonapi.rb' +gem 'jwt' +gem 'keisan' +gem 'net-smtp' +gem 'nokogiri' +gem 'pg' +gem 'puma' +gem 'rack' gem 'rails', '~> 6.1.6' -gem 'rails_warden', '~> 0.6.0' -gem 'ransack', '~> 3.2.0' -gem 'redis', '~> 4.6.0' -gem 'sidekiq', '~> 6.4.2' -gem 'twitter', '~> 7.0.0' - -# gem 'jbuilder', '~> 2.7' -# gem 'redis', '~> 4.0' -# gem 'image_processing', '~> 1.2' -# gem 'rack-cors' +gem 'rails_warden' +gem 'ransack' +gem 'redis' +gem 'sidekiq' +gem 'twitter' group :development do - gem 'better_errors', '~> 2.9.1' - gem 'foreman', '~> 0.87.2' - gem 'listen', '~> 3.7.1' - gem 'rubocop', '~> 1.29.1' - gem 'rubocop-rails', '~> 2.14.2' - gem 'rubocop-rspec', '~> 2.11.1' - gem 'spring', '~> 4.0.0' + gem 'better_errors' + gem 'foreman' + gem 'listen' + gem 'rubocop' + gem 'rubocop-rails' + gem 'rubocop-rspec' + gem 'spring' end group :development, :test do - gem 'byebug', '11.1.3', platforms: %i[mri mingw x64_mingw] - gem 'dotenv-rails', '~> 2.7.6' - gem 'factory_bot_rails', '~> 6.2.0' - gem 'pry-rails', '~> 0.3.9' - gem 'rspec-rails', '~> 5.1.2' + gem 'byebug', platforms: %i[mri mingw x64_mingw] + gem 'dotenv-rails' + gem 'factory_bot_rails' + gem 'pry-rails' + gem 'rspec-rails' end group :test do - gem 'shoulda-matchers', '~> 5.1.0' - gem 'simplecov', '~> 0.21.2' - gem 'simplecov-lcov', '~> 0.8.0' - gem 'super_diff', '~> 0.9.0' - gem 'undercover', '~> 0.4.4' - gem 'vcr', '~> 6.1.0' - gem 'webmock', '~> 3.14.0' + gem 'shoulda-matchers' + gem 'simplecov' + gem 'simplecov-lcov' + gem 'super_diff' + gem 'undercover' + gem 'vcr' + gem 'webmock' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/Gemfile.lock b/Gemfile.lock index c03de2c..47dfb03 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,275 +1,298 @@ GEM remote: https://rubygems.org/ specs: - actioncable (6.1.6) - actionpack (= 6.1.6) - activesupport (= 6.1.6) + actioncable (6.1.7.6) + actionpack (= 6.1.7.6) + activesupport (= 6.1.7.6) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (6.1.6) - actionpack (= 6.1.6) - activejob (= 6.1.6) - activerecord (= 6.1.6) - activestorage (= 6.1.6) - activesupport (= 6.1.6) + actionmailbox (6.1.7.6) + actionpack (= 6.1.7.6) + activejob (= 6.1.7.6) + activerecord (= 6.1.7.6) + activestorage (= 6.1.7.6) + activesupport (= 6.1.7.6) mail (>= 2.7.1) - actionmailer (6.1.6) - actionpack (= 6.1.6) - actionview (= 6.1.6) - activejob (= 6.1.6) - activesupport (= 6.1.6) + actionmailer (6.1.7.6) + actionpack (= 6.1.7.6) + actionview (= 6.1.7.6) + activejob (= 6.1.7.6) + activesupport (= 6.1.7.6) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (6.1.6) - actionview (= 6.1.6) - activesupport (= 6.1.6) + actionpack (6.1.7.6) + actionview (= 6.1.7.6) + activesupport (= 6.1.7.6) rack (~> 2.0, >= 2.0.9) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.1.6) - actionpack (= 6.1.6) - activerecord (= 6.1.6) - activestorage (= 6.1.6) - activesupport (= 6.1.6) + actiontext (6.1.7.6) + actionpack (= 6.1.7.6) + activerecord (= 6.1.7.6) + activestorage (= 6.1.7.6) + activesupport (= 6.1.7.6) nokogiri (>= 1.8.5) - actionview (6.1.6) - activesupport (= 6.1.6) + actionview (6.1.7.6) + activesupport (= 6.1.7.6) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.1.6) - activesupport (= 6.1.6) + activejob (6.1.7.6) + activesupport (= 6.1.7.6) globalid (>= 0.3.6) - activemodel (6.1.6) - activesupport (= 6.1.6) - activerecord (6.1.6) - activemodel (= 6.1.6) - activesupport (= 6.1.6) - activestorage (6.1.6) - actionpack (= 6.1.6) - activejob (= 6.1.6) - activerecord (= 6.1.6) - activesupport (= 6.1.6) + activemodel (6.1.7.6) + activesupport (= 6.1.7.6) + activerecord (6.1.7.6) + activemodel (= 6.1.7.6) + activesupport (= 6.1.7.6) + activestorage (6.1.7.6) + actionpack (= 6.1.7.6) + activejob (= 6.1.7.6) + activerecord (= 6.1.7.6) + activesupport (= 6.1.7.6) marcel (~> 1.0) mini_mime (>= 1.1.0) - activesupport (6.1.6) + activesupport (6.1.7.6) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) zeitwerk (~> 2.3) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) + addressable (2.8.5) + public_suffix (>= 2.0.2, < 6.0) amq-protocol (2.3.2) ast (2.4.2) - attr_extras (6.2.5) - bcrypt (3.1.18) - better_errors (2.9.1) - coderay (>= 1.0.0) + attr_extras (7.1.0) + base64 (0.1.1) + bcrypt (3.1.19) + better_errors (2.10.1) erubi (>= 1.0.0) rack (>= 0.9.0) - bootsnap (1.11.1) + rouge (>= 1.0.0) + bootsnap (1.16.0) msgpack (~> 1.2) - buftok (0.2.0) + buftok (0.3.0) builder (3.2.4) - bunny (2.19.0) + bunny (2.22.0) amq-protocol (~> 2.3, >= 2.3.1) sorted_set (~> 1, >= 1.0.2) byebug (11.1.3) cmath (1.0.0) coderay (1.1.3) - concurrent-ruby (1.1.10) - connection_pool (2.2.5) + concurrent-ruby (1.2.2) + connection_pool (2.4.1) crack (0.4.5) rexml crass (1.0.6) + date (3.3.3) diff-lcs (1.5.0) - digest (3.1.0) docile (1.4.0) domain_name (0.5.20190701) unf (>= 0.0.5, < 1.0.0) - dotenv (2.7.6) - dotenv-rails (2.7.6) - dotenv (= 2.7.6) + dotenv (2.8.1) + dotenv-rails (2.8.1) + dotenv (= 2.8.1) railties (>= 3.2) equalizer (0.0.11) - erubi (1.10.0) + erubi (1.12.0) factory_bot (6.2.1) activesupport (>= 5.0.0) factory_bot_rails (6.2.0) factory_bot (~> 6.2.0) railties (>= 5.0.0) - ffi (1.15.5) + ffi (1.16.3) ffi-compiler (1.0.1) ffi (>= 1.0.0) rake foreman (0.87.2) - globalid (1.0.0) - activesupport (>= 5.0) + globalid (1.2.1) + activesupport (>= 6.1) hashdiff (1.0.1) - http (4.4.1) - addressable (~> 2.3) + http (5.1.1) + addressable (~> 2.8) http-cookie (~> 1.0) http-form_data (~> 2.2) - http-parser (~> 1.2.0) - http-cookie (1.0.4) + llhttp-ffi (~> 0.4.0) + http-cookie (1.0.5) domain_name (~> 0.5) http-form_data (2.3.0) - http-parser (1.2.3) - ffi-compiler (>= 1.0, < 2.0) - http_parser.rb (0.6.0) - httparty (0.20.0) - mime-types (~> 3.0) + httparty (0.21.0) + mini_mime (>= 1.0.0) multi_xml (>= 0.5.2) - i18n (1.10.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) imagen (0.1.8) parser (>= 2.5, != 2.5.1.1) + json (2.6.3) jsonapi-serializer (2.2.0) activesupport (>= 4.2) - jsonapi.rb (2.0.0) + jsonapi.rb (2.0.1) jsonapi-serializer rack - jwt (2.3.0) + jwt (2.7.1) keisan (0.9.1) cmath (~> 1.0) - listen (3.7.1) + language_server-protocol (3.17.0.3) + listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - loofah (2.18.0) + llhttp-ffi (0.4.0) + ffi-compiler (~> 1.0) + rake (~> 13.0) + loofah (2.21.4) crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) + nokogiri (>= 1.12.0) + mail (2.8.1) mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp marcel (1.0.2) memoizable (0.4.2) thread_safe (~> 0.3, >= 0.3.1) method_source (1.0.0) - mime-types (3.4.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2022.0105) - mini_mime (1.1.2) - minitest (5.15.0) - msgpack (1.5.1) + mini_mime (1.1.5) + minitest (5.20.0) + msgpack (1.7.2) multi_xml (0.6.0) - multipart-post (2.1.1) + multipart-post (2.3.0) naught (1.1.0) - net-protocol (0.1.3) - timeout - net-smtp (0.3.1) - digest + net-imap (0.4.1) + date net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.1) timeout - nio4r (2.5.8) - nokogiri (1.13.6-x86_64-linux) + net-smtp (0.4.0) + net-protocol + nio4r (2.5.9) + nokogiri (1.15.4-aarch64-linux) racc (~> 1.4) - optimist (3.0.1) - parallel (1.22.1) - parser (3.1.2.0) + optimist (3.1.0) + parallel (1.23.0) + parser (3.2.2.4) ast (~> 2.4.1) + racc patience_diff (1.2.0) optimist (~> 3.0) - pg (1.3.5) - pry (0.14.1) + pg (1.5.4) + pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) pry-rails (0.3.9) pry (>= 0.10.4) - public_suffix (4.0.7) - puma (5.6.4) + public_suffix (5.0.3) + puma (6.4.0) nio4r (~> 2.0) - racc (1.6.0) - rack (2.2.3.1) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (6.1.6) - actioncable (= 6.1.6) - actionmailbox (= 6.1.6) - actionmailer (= 6.1.6) - actionpack (= 6.1.6) - actiontext (= 6.1.6) - actionview (= 6.1.6) - activejob (= 6.1.6) - activemodel (= 6.1.6) - activerecord (= 6.1.6) - activestorage (= 6.1.6) - activesupport (= 6.1.6) + racc (1.7.1) + rack (2.2.8) + rack-test (2.1.0) + rack (>= 1.3) + rails (6.1.7.6) + actioncable (= 6.1.7.6) + actionmailbox (= 6.1.7.6) + actionmailer (= 6.1.7.6) + actionpack (= 6.1.7.6) + actiontext (= 6.1.7.6) + actionview (= 6.1.7.6) + activejob (= 6.1.7.6) + activemodel (= 6.1.7.6) + activerecord (= 6.1.7.6) + activestorage (= 6.1.7.6) + activesupport (= 6.1.7.6) bundler (>= 1.15.0) - railties (= 6.1.6) + railties (= 6.1.7.6) sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) rails_warden (0.6.0) warden (>= 1.2.0) - railties (6.1.6) - actionpack (= 6.1.6) - activesupport (= 6.1.6) + railties (6.1.7.6) + actionpack (= 6.1.7.6) + activesupport (= 6.1.7.6) method_source rake (>= 12.2) thor (~> 1.0) rainbow (3.1.1) rake (13.0.6) - ransack (3.2.0) + ransack (4.0.0) activerecord (>= 6.1.5) activesupport (>= 6.1.5) i18n - rb-fsevent (0.11.1) + rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) - rbtree (0.4.5) - redis (4.6.0) - regexp_parser (2.4.0) - rexml (3.2.5) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) + rbtree (0.4.6) + redis (5.0.7) + redis-client (>= 0.9.0) + redis-client (0.17.0) + connection_pool + regexp_parser (2.8.2) + rexml (3.2.6) + rouge (4.1.3) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.1) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-rails (5.1.2) - actionpack (>= 5.2) - activesupport (>= 5.2) - railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) - rspec-support (3.11.0) - rubocop (1.29.1) + rspec-support (~> 3.12.0) + rspec-rails (6.0.3) + actionpack (>= 6.1) + activesupport (>= 6.1) + railties (>= 6.1) + rspec-core (~> 3.12) + rspec-expectations (~> 3.12) + rspec-mocks (~> 3.12) + rspec-support (~> 3.12) + rspec-support (3.12.1) + rubocop (1.57.1) + base64 (~> 0.1.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.1.0.0) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.17.0, < 2.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.18.0) - parser (>= 3.1.1.0) - rubocop-rails (2.14.2) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.29.0) + parser (>= 3.2.1.0) + rubocop-capybara (2.19.0) + rubocop (~> 1.41) + rubocop-factory_bot (2.24.0) + rubocop (~> 1.33) + rubocop-rails (2.21.2) activesupport (>= 4.2.0) rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.11.1) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) - rugged (1.2.0) - set (1.0.2) - shoulda-matchers (5.1.0) + rubocop (>= 1.33.0, < 2.0) + rubocop-rspec (2.24.1) + rubocop (~> 1.33) + rubocop-capybara (~> 2.17) + rubocop-factory_bot (~> 2.22) + ruby-progressbar (1.13.0) + rugged (1.6.3) + set (1.0.3) + shoulda-matchers (5.3.0) activesupport (>= 5.2.0) - sidekiq (6.4.2) - connection_pool (>= 2.2.2) - rack (~> 2.0) - redis (>= 4.2.0) + sidekiq (7.1.6) + concurrent-ruby (< 2) + connection_pool (>= 2.3.0) + rack (>= 2.2.4) + redis-client (>= 0.14.0) simple_oauth (0.3.1) - simplecov (0.21.2) + simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) @@ -279,98 +302,99 @@ GEM sorted_set (1.0.3) rbtree set (~> 1.0) - spring (4.0.0) - sprockets (4.0.3) + spring (4.1.1) + sprockets (4.2.1) concurrent-ruby (~> 1.0) - rack (> 1, < 3) + rack (>= 2.2.4, < 4) sprockets-rails (3.4.2) actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - super_diff (0.9.0) + super_diff (0.10.0) attr_extras (>= 6.2.4) diff-lcs patience_diff - thor (1.2.1) + thor (1.2.2) thread_safe (0.3.6) - timeout (0.2.0) - twitter (7.0.0) + timeout (0.4.0) + twitter (8.0.1) addressable (~> 2.3) - buftok (~> 0.2.0) + buftok (~> 0.3.0) equalizer (~> 0.0.11) - http (~> 4.0) - http-form_data (~> 2.0) - http_parser.rb (~> 0.6.0) + http (~> 5.1) + http-form_data (~> 2.3) + llhttp-ffi (~> 0.4.0) memoizable (~> 0.4.0) multipart-post (~> 2.0) naught (~> 1.0) simple_oauth (~> 0.3.0) - tzinfo (2.0.4) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) - undercover (0.4.4) + undercover (0.4.6) imagen (>= 0.1.8) rainbow (>= 2.1, < 4.0) - rugged (>= 0.27, < 1.3) + rugged (>= 0.27, < 1.7) unf (0.1.4) unf_ext - unf_ext (0.0.8.1) - unicode-display_width (2.1.0) - vcr (6.1.0) + unf_ext (0.0.8.2) + unicode-display_width (2.5.0) + vcr (6.2.0) warden (1.2.9) rack (>= 2.0.9) - webmock (3.14.0) + webmock (3.19.1) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) - websocket-driver (0.7.5) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) - zeitwerk (2.5.4) + zeitwerk (2.6.12) PLATFORMS - x86_64-linux + aarch64-linux DEPENDENCIES - bcrypt (~> 3.1.18) - better_errors (~> 2.9.1) - bootsnap (>= 1.11.1) - bunny (~> 2.19.0) - byebug (= 11.1.3) - dotenv-rails (~> 2.7.6) - factory_bot_rails (~> 6.2.0) - foreman (~> 0.87.2) - httparty (~> 0.20.0) - jsonapi.rb (~> 2.0.0) - jwt (~> 2.3.0) - keisan (~> 0.9.1) - listen (~> 3.7.1) - net-smtp (= 0.3.1) - pg (~> 1.3.5) - pry-rails (~> 0.3.9) - puma (~> 5.6.4) - rack (>= 2.2.3.1) + bcrypt + better_errors + bootsnap + bunny + byebug + dotenv-rails + factory_bot_rails + foreman + httparty + jsonapi.rb + jwt + keisan + listen + net-smtp + nokogiri + pg + pry-rails + puma + rack rails (~> 6.1.6) - rails_warden (~> 0.6.0) - ransack (~> 3.2.0) - redis (~> 4.6.0) - rspec-rails (~> 5.1.2) - rubocop (~> 1.29.1) - rubocop-rails (~> 2.14.2) - rubocop-rspec (~> 2.11.1) - shoulda-matchers (~> 5.1.0) - sidekiq (~> 6.4.2) - simplecov (~> 0.21.2) - simplecov-lcov (~> 0.8.0) - spring (~> 4.0.0) - super_diff (~> 0.9.0) - twitter (~> 7.0.0) + rails_warden + ransack + redis + rspec-rails + rubocop + rubocop-rails + rubocop-rspec + shoulda-matchers + sidekiq + simplecov + simplecov-lcov + spring + super_diff + twitter tzinfo-data - undercover (~> 0.4.4) - vcr (~> 6.1.0) - webmock (~> 3.14.0) + undercover + vcr + webmock RUBY VERSION ruby 3.1.2p20 BUNDLED WITH - 2.3.14 + 2.4.20 diff --git a/config/puma.rb b/config/puma.rb index 7cc2311..8ae6a78 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -17,7 +17,7 @@ # Specifies the `port` that Puma will listen on to receive requests; default is 3000. # -port ENV.fetch('PORT', 5000) +port ENV.fetch('PORT', 3000) # Specifies the `environment` that Puma will run in. # diff --git a/docker-compose.base.yml b/docker-compose.base.yml index 8374b4c..7e3a3c8 100644 --- a/docker-compose.base.yml +++ b/docker-compose.base.yml @@ -1,5 +1,6 @@ services: base: + platform: linux/arm64 tty: true stdin_open: true build: . @@ -10,16 +11,19 @@ services: - REDIS_URL=redis://redis:6379/0 - JWT_DB_REDIS_URL=redis://redis:6379/0 postgres_base: + platform: linux/arm64 image: postgres:13.4-alpine ports: - "5432:5432" environment: - POSTGRES_HOST_AUTH_METHOD=trust redis_base: + platform: linux/arm64 image: redis:6.2.5-alpine ports: - "6379:6379" rabbitmq_base: + platform: linux/arm64 image: rabbitmq:3.10.5-management-alpine ports: - "5672:5672" diff --git a/docker-compose.yml b/docker-compose.yml index 33b40f9..4371aba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,9 +5,9 @@ services: extends: file: docker-compose.base.yml service: base - command: bundle exec puma -C config/puma.rb + command: sh -c "bundle install && bundle exec puma -C config/puma.rb" ports: - - "5000:5000" + - "3000:3000" links: - db - redis