Skip to content

Conversation

@N-Shuaili
Copy link

Dockerfile:
I created this file to download the target file.
Then, I modified the file to create the app build.

Docker-compose:
This contains two services, my sql and the app.
Both services contain either the image or the location of the image build in the case of the app. In addition to their respective environments, ports that they listen to, when they should be restarted and the network they're connected to.

My sql contains a volume to persist the data entered by users.
Running the app depends on having sql already running.

Copy link
Owner

Choose a reason for hiding this comment

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

For review purposes it's fine, but we should never push the changes with a .env file. The reason is that, this .env is environment specific. On our PC there might be a MySQL server running locally with a different username and password.
Similarly, Another team member may spin up a container and point to a MySQL server running on cloud.

Copy link
Owner

Choose a reason for hiding this comment

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

Target directory is also host specific and usually not pushed on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants