add variable for the restart policy

This commit is contained in:
Marco Kundt 2021-04-12 15:02:03 +02:00
parent cd9fd14cfe
commit 6ec897971c
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ services:
postgres: postgres:
container_name: postgres_mattermost container_name: postgres_mattermost
image: postgres:${POSTGRES_IMAGE_TAG} image: postgres:${POSTGRES_IMAGE_TAG}
restart: unless-stopped restart: ${RESTART_POLICY}
volumes: volumes:
- ${POSTGRES_DATA_PATH}:/var/lib/postgresql/data - ${POSTGRES_DATA_PATH}:/var/lib/postgresql/data
environment: environment:
@ -21,7 +21,7 @@ services:
nginx: nginx:
container_name: nginx_mattermost container_name: nginx_mattermost
image: nginx:${NGINX_IMAGE_TAG} image: nginx:${NGINX_IMAGE_TAG}
restart: unless-stopped restart: ${RESTART_POLICY}
volumes: volumes:
- ${NGINX_MATTERMOST_CONFIG}:/etc/nginx/conf.d/mattermost.conf:ro - ${NGINX_MATTERMOST_CONFIG}:/etc/nginx/conf.d/mattermost.conf:ro
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem - ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
@ -40,7 +40,7 @@ services:
- nginx - nginx
container_name: mattermost container_name: mattermost
image: mattermost/${MATTERMOST_IMAGE}:${MATTERMOST_IMAGE_TAG} image: mattermost/${MATTERMOST_IMAGE}:${MATTERMOST_IMAGE_TAG}
restart: unless-stopped restart: ${RESTART_POLICY}
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

View File

@ -3,6 +3,7 @@
## A list of these tz database names can be looked up at Wikipedia ## A list of these tz database names can be looked up at Wikipedia
## https://en.wikipedia.org/wiki/List_of_tz_database_time_zones ## https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=UTC TZ=UTC
RESTART_POLICY=unless-stopped
# Postrges settings # Postrges settings
## Documentation for this image and available settings can be found on hub.docker.com ## Documentation for this image and available settings can be found on hub.docker.com