diff --git a/backend/Dockerfile b/backend/Dockerfile index 3c6d419..dfe0f42 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -15,5 +15,6 @@ COPY backend/. . ENV RAILS_ENV production ENV RUBY_YJIT_ENABLE 1 +EXPOSE 3000 ENV CONSOLE_OUTPUT XTerm CMD ["bundle", "exec", "bash", "./start.sh"] diff --git a/backend/Gemfile b/backend/Gemfile index 44e9d5a..4877148 100644 --- a/backend/Gemfile +++ b/backend/Gemfile @@ -51,10 +51,9 @@ group :development do gem "rubocop-discourse", "~> 3.0", require: false gem "syntax_tree", "~> 5.1", require: false - - gem "puma", "~> 6.3", require: false end +gem "puma", "~> 6.3", require: false gem "falcon", "~> 0.42" gem "shortuuid", "~> 0.6.0" diff --git a/backend/start.sh b/backend/start.sh index 7fb29fc..3faa780 100644 --- a/backend/start.sh +++ b/backend/start.sh @@ -10,4 +10,4 @@ echo "Starting sidekiq" sidekiq & echo "Starting rails server" -falcon serve --bind http://0.0.0.0:3000 +rails s -u puma -p 3000 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index ed43fc6..9f4f65b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -10,4 +10,5 @@ RUN npm install -g pnpm && pnpm install --frozen-lockfile COPY frontend/. . +EXPOSE 3100 CMD ["pnpm", "start"] diff --git a/sub-chart/Dockerfile b/sub-chart/Dockerfile index dfe8e83..7a7e4db 100644 --- a/sub-chart/Dockerfile +++ b/sub-chart/Dockerfile @@ -7,4 +7,5 @@ COPY sub-chart/package.json ./ COPY sub-chart/dist ./dist ENV NODE_ENV production +EXPOSE 3201 CMD ["pnpm", "run", "start"]