Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue #1510]: Split FE / BE docker-compose #1513

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

rylew1
Copy link
Contributor

@rylew1 rylew1 commented Mar 20, 2024

Summary

Fixes #1510

Time to review: 5 min

Changes proposed

  • Move nextjs and storybook service to ./frontend/docker-compose.yml
  • Move grants-api and grants-db service to ./api/docker-compose.yml
  • Top level ./docker-compose.yml

Demo:

  • Command from FE folder => make build-dev dev storybook
  • Command from BE folder => make build start run-logs
image

Copy link
Collaborator

@coilysiren coilysiren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍!

volumes:
grantsdbdata:
# services:
# Define other services or override configurations
Copy link
Contributor Author

@rylew1 rylew1 Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could remove this comment 🤷

@rylew1 rylew1 self-assigned this Mar 20, 2024
@rylew1 rylew1 added this to the Technical improvements milestone Mar 20, 2024
@rylew1
Copy link
Contributor Author

rylew1 commented Mar 20, 2024

@chouinar When you start all containers the frontend gives an error trying to connect to the api (Error: connect ECONNREFUSED 127.0.0.1:8080),

But this is also happening on main

@rylew1 rylew1 merged commit 84a593f into main Mar 21, 2024
16 checks passed
@rylew1 rylew1 deleted the rylew/1510-separate-fe-be-docker branch March 21, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
3 participants