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

Refactor docker (compose) setup #629

Merged
merged 6 commits into from
Feb 1, 2025
Merged

Refactor docker (compose) setup #629

merged 6 commits into from
Feb 1, 2025

Conversation

leepeuker
Copy link
Owner

@leepeuker leepeuker commented Feb 1, 2025

Changes:

  • split single docker-compose files into separate files to enable more granular control of the setup or make it easier to understand
  • add more make commands for the different docker-compose environment options
  • add default values for as many environment as possible to make require as less manual configuration as possible

@leepeuker leepeuker merged commit 300b92e into main Feb 1, 2025
1 check passed
@leepeuker leepeuker deleted the refactor-docker-setup branch February 1, 2025 15:46
Comment on lines 19 to +27
Use the following cli commands to manage your local environment:

- run `make up` to start all containers again (`build` is only for the initial setup!)
- run `make down` to stop all containers
- run `make reup` to stop and restart all containers
- run `make app_database_migrate` execute the database migrations
- run `make app_jobs_process` process the next job from the queue (see database table `job_queue`)
- `make up` to start the application in production stage using SQLite (using docker volumes)
- `make up_mysql` to start the application in production stage using MySQL (using docker volumes)
- `make up_development` to start the application in development stage using SQLite (mounting local files)
- `make up_development_myqsl` to start the application in development stage using MySQL (mounting local files)
- `make down` to stop all containers
- `make app_database_migrate` execute the database migrations
- `make app_jobs_process` process the next job from the queue (see database table `job_queue`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add that make only works on linux.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Make maybe only works on linux but the commands executed the make targets should work on all systems, so the make targets can still provide a good starting point to see how to run the application. We should definitely add this to the docs 👍

@leepeuker leepeuker mentioned this pull request Feb 2, 2025
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