This repository was archived by the owner on May 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 564
Production Hardening #241
Merged
Merged
Production Hardening #241
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ee4bcf6
Merge remote-tracking branch 'mattermost/master'
12eb09f
update link for ubuntu-16.04 (#235)
kaakaa 17d91c5
Upgrade to 4.7.0 (#236)
andruwa13 15dfb8c
update dockerfile to use MM 4.7.0 (#237)
cpanato 076633c
Upgrade to 4.7.1 (#238)
pichouk 2437340
Upgrade to 4.7.2 (#240)
pichouk 49c899b
Images Postgres Alpine, optimization (#207)
andruwa13 f14fece
Production contraints for mattermost app
4c66e8a
Merge branch 'master' of https://github.com/mattermost/mattermost-doc…
2f4da14
Production constraints
ebddec1
update documentation
bf11540
Update docker product version in readme
6966d94
update docker-compose version
a145f83
Update uid/gid to use default one
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,19 @@ | ||
| FROM nginx:mainline-alpine | ||
|
|
||
| # Remove default configuration and add our custom Nginx configuration files | ||
| RUN rm /etc/nginx/conf.d/default.conf | ||
| COPY ./mattermost /etc/nginx/sites-available/ | ||
| COPY ./mattermost-ssl /etc/nginx/sites-available/ | ||
| RUN rm /etc/nginx/conf.d/default.conf \ | ||
| && apk add --no-cache curl | ||
|
|
||
| COPY ["./mattermost", "./mattermost-ssl", "/etc/nginx/sites-available/"] | ||
| COPY ./security.conf /etc/nginx/conf.d/ | ||
|
|
||
| # Add and setup entrypoint | ||
| COPY entrypoint.sh / | ||
|
|
||
| #Healthcheck to make sure container is ready | ||
| HEALTHCHECK CMD curl --fail http://localhost:80 || exit 1 | ||
|
|
||
| ENTRYPOINT ["/entrypoint.sh"] | ||
|
|
||
| VOLUME ["/var/run", "/etc/nginx/conf.d/", "/var/cache/nginx/"] | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you can remove this commented line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, I tryied to make it woks with read only but not mounted (ie: plugin folder) volumes were created with random UID/GID in the container.