Add default restart policies and logging options to all containers - #233
Add default restart policies and logging options to all containers#233khaledk2 wants to merge 2 commits into
Conversation
|
cc @jburel |
| build: | ||
| context: ./server | ||
| dockerfile: Dockerfile | ||
|
|
There was a problem hiding this comment.
Remove the empty line to unify with the rest of the file.
|
I have added the changes from this PR to the I guess we will see next Tuesday how effective this tactics is. |
|
Just a quick note: After merging changes from the PR into the Docker Compose file on |
aha, more specifically, do we need to run the whole |
|
Just run |
@pwalczysko has updated the
nginxjenkinscontainer to ensure it always restarts on theidr3-slot2server.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
restartpolicy tounless-stoppedto all containers.In addition, it sets logging options 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.