forked from mirrors/mattermost-docker
hardening options
This commit is contained in:
parent
0471c3e858
commit
e8867805fe
@ -1,4 +1,4 @@
|
|||||||
version: "3"
|
version: "2.4"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
@ -6,7 +6,13 @@ services:
|
|||||||
- mattermost
|
- mattermost
|
||||||
container_name: nginx_mattermost
|
container_name: nginx_mattermost
|
||||||
image: nginx:${NGINX_IMAGE_TAG}
|
image: nginx:${NGINX_IMAGE_TAG}
|
||||||
|
pids_limit: 10
|
||||||
restart: ${RESTART_POLICY}
|
restart: ${RESTART_POLICY}
|
||||||
|
read_only: true
|
||||||
|
tmpfs:
|
||||||
|
- /var/run
|
||||||
|
- /var/cache
|
||||||
|
- /var/log/nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ${NGINX_CONFIG_PATH}:/etc/nginx/conf.d:ro
|
- ${NGINX_CONFIG_PATH}:/etc/nginx/conf.d:ro
|
||||||
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
|
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
|
||||||
|
@ -1,12 +1,17 @@
|
|||||||
# https://docs.docker.com/compose/environment-variables/
|
# https://docs.docker.com/compose/environment-variables/
|
||||||
|
|
||||||
version: "3"
|
version: "2.4"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
container_name: postgres_mattermost
|
container_name: postgres_mattermost
|
||||||
image: postgres:${POSTGRES_IMAGE_TAG}
|
image: postgres:${POSTGRES_IMAGE_TAG}
|
||||||
|
pids_limit: 10
|
||||||
restart: ${RESTART_POLICY}
|
restart: ${RESTART_POLICY}
|
||||||
|
read_only: true
|
||||||
|
tmpfs:
|
||||||
|
- /tmp
|
||||||
|
- /var/run/postgresql
|
||||||
volumes:
|
volumes:
|
||||||
- ${POSTGRES_DATA_PATH}:/var/lib/postgresql/data
|
- ${POSTGRES_DATA_PATH}:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
@ -23,7 +28,11 @@ services:
|
|||||||
- postgres
|
- postgres
|
||||||
container_name: mattermost
|
container_name: mattermost
|
||||||
image: mattermost/${MATTERMOST_IMAGE}:${MATTERMOST_IMAGE_TAG}
|
image: mattermost/${MATTERMOST_IMAGE}:${MATTERMOST_IMAGE_TAG}
|
||||||
|
pids_limit: 15
|
||||||
restart: ${RESTART_POLICY}
|
restart: ${RESTART_POLICY}
|
||||||
|
read_only: true
|
||||||
|
tmpfs:
|
||||||
|
- /tmp
|
||||||
volumes:
|
volumes:
|
||||||
- ${MATTERMOST_CONFIG_PATH}:/mattermost/config:rw
|
- ${MATTERMOST_CONFIG_PATH}:/mattermost/config:rw
|
||||||
- ${MATTERMOST_DATA_PATH}:/mattermost/data:rw
|
- ${MATTERMOST_DATA_PATH}:/mattermost/data:rw
|
||||||
@ -49,5 +58,8 @@ services:
|
|||||||
# container_name: watchtower
|
# container_name: watchtower
|
||||||
# image: containrrr/watchtower:latest
|
# image: containrrr/watchtower:latest
|
||||||
# restart: unless-stopped
|
# restart: unless-stopped
|
||||||
|
# read_only: true
|
||||||
|
# tmpfs:
|
||||||
|
# - /tmp
|
||||||
# volumes:
|
# volumes:
|
||||||
# - /var/run/docker.sock:/var/run/docker.sock
|
# - /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
Loading…
Reference in New Issue
Block a user