diff --git a/Dockerfile b/Dockerfile index 4f4062a371..424ea74807 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,9 +40,10 @@ RUN bundle install --jobs "$(nproc)" RUN echo "--modules-folder /node_modules" > .yarnrc COPY --chown=ruby:ruby package.json *yarn* ./ RUN yarn install +RUN gem install rails -ENTRYPOINT ["/app/bin/docker-entrypoint-web"] +# ENTRYPOINT ["/app/bin/docker-entrypoint-web"] EXPOSE 3000 -CMD ["sh"] \ No newline at end of file +CMD ["/bin/bash"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index a455af4eca..8b0807d1f5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,6 +29,9 @@ services: profiles: ["db"] ports: - "3306:3306" + volumes: + - db-v:/var/lib/mysql + cache: deploy: resources: @@ -45,5 +48,6 @@ services: profiles: ["web"] command: "yarn build --watch" volumes: + db-v: bundle: node: