2021-05-21 12:41:34 +00:00
|
|
|
version: "2.4"
|
2021-04-15 12:42:55 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
nginx:
|
2021-04-27 10:48:56 +00:00
|
|
|
depends_on:
|
|
|
|
- mattermost
|
2021-04-15 12:42:55 +00:00
|
|
|
container_name: nginx_mattermost
|
|
|
|
image: nginx:${NGINX_IMAGE_TAG}
|
|
|
|
restart: ${RESTART_POLICY}
|
2021-05-21 12:41:34 +00:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
pids_limit: 100
|
|
|
|
read_only: true
|
|
|
|
tmpfs:
|
|
|
|
- /var/run
|
|
|
|
- /var/cache
|
|
|
|
- /var/log/nginx
|
2021-04-15 12:42:55 +00:00
|
|
|
volumes:
|
2021-04-27 10:05:52 +00:00
|
|
|
- ${NGINX_CONFIG_PATH}:/etc/nginx/conf.d:ro
|
2021-04-15 12:42:55 +00:00
|
|
|
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
|
|
|
|
- ${CERT_PATH}:/cert.pem:ro
|
|
|
|
- ${KEY_PATH}:/key.pem:ro
|
2021-04-16 09:26:33 +00:00
|
|
|
- shared-webroot:/usr/share/nginx/html
|
2021-04-15 12:42:55 +00:00
|
|
|
environment:
|
|
|
|
# timezone inside container
|
2021-10-13 05:59:44 +00:00
|
|
|
- TZ
|
2021-04-15 12:42:55 +00:00
|
|
|
ports:
|
|
|
|
- ${HTTPS_PORT}:443
|
|
|
|
- ${HTTP_PORT}:80
|
2022-12-07 21:47:50 +00:00
|
|
|
mattermost:
|
|
|
|
ports:
|
|
|
|
- ${CALLS_PORT}:8443/udp
|
2021-04-16 09:26:33 +00:00
|
|
|
|
|
|
|
# Shared volume for Let's Encrypt certificate renewal with a webroot
|
|
|
|
volumes:
|
|
|
|
shared-webroot:
|
2021-06-28 10:59:55 +00:00
|
|
|
name: shared-webroot
|
2021-04-16 09:26:33 +00:00
|
|
|
|
|
|
|
# This network name is being used for Let's Encrypt certificate renewal
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: mattermost
|