Skip to content

Add default restart policies and logging options to all containers - #233

Open
khaledk2 wants to merge 1 commit into
ome:masterfrom
khaledk2:change_restart_policy_limit_logs
Open

Add default restart policies and logging options to all containers#233
khaledk2 wants to merge 1 commit into
ome:masterfrom
khaledk2:change_restart_policy_limit_logs

Conversation

@khaledk2

Copy link
Copy Markdown

@pwalczysko has updated the nginxjenkins container to ensure it always restarts on the idr3-slot2 server.
I think the same should be applied to all containers to ensure that all containers automatically restart when the machine reboots or fails for any reason

This PR changes the restart policy to unless-stopped to all containers.

In addition, it sets logging options for each container:

  • The size of the log file to be 100 mb, so no single log file grows indefinitely.
  • Docker will keep up to three log files for each container

This configuration helps in maintaining the health and performance of the containers by ensuring that logs do not consume too much disk space.

@khaledk2

Copy link
Copy Markdown
Author

cc @jburel

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.

1 participant