github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/deploy/env.example (about) 1 DOMAIN=hungknow.tk 2 3 # Container settings 4 ## Timezone inside the containers. The value needs to be in the form 'Europe/Berlin'. 5 ## A list of these tz database names can be looked up at Wikipedia 6 ## https://en.wikipedia.org/wiki/List_of_tz_database_time_zones 7 TZ=UTC 8 RESTART_POLICY=unless-stopped 9 10 # Postgres settings 11 ## Documentation for this image and available settings can be found on hub.docker.com 12 ## https://hub.docker.com/_/postgres 13 ## Please keep in mind this will create a superuser and it's recommended to use a less privileged 14 ## user to connect to the database. 15 ## A guide on how to change the database user to a nonsuperuser can be found in docs/creation-of-nonsuperuser.md 16 POSTGRES_IMAGE_TAG=13-alpine 17 POSTGRES_DATA_PATH=./volumes/db/var/lib/postgresql/data 18 19 POSTGRES_USER=hkuser 20 POSTGRES_PASSWORD=mostest 21 POSTGRES_DB=hungknow 22 23 MYSQL_IMAGE_TAG=8.0 24 MYSQL_DATA_PATH=./volumes/db/var/lib/mysql/data 25 26 MYSQL_ROOT_PASSWORD=roottest 27 MYSQL_USER=hkuser 28 MYSQL_PASSWORD=mostest 29 MYSQL_DATABASE=hungknow 30 31 # Nginx 32 ## The nginx container will use a configuration found at the NGINX_HUNGKNOW_CONFIG. The config aims 33 ## to be secure and uses a catch-all server vhost which will work out-of-the-box. For additional settings 34 ## or changes ones can edit it or provide another config. Important note: inside the container, nginx sources 35 ## every config file inside */etc/nginx/conf.d* ending with a *.conf* file extension. 36 37 ## Inside the container the uid and gid is 101. The folder owner can be set with 38 ## `sudo chown -R 101:101 ./nginx` if needed. 39 NGINX_IMAGE_TAG=alpine 40 41 ## The folder containing server blocks and any additional config to nginx.conf 42 NGINX_CONFIG_PATH=./nginx/conf.d 43 NGINX_DHPARAMS_FILE=./nginx/dhparams4096.pem 44 45 CERT_PATH=./volumes/web/cert/cert.pem 46 KEY_PATH=./volumes/web/cert/key-no-password.pem 47 #CERT_PATH=./certs/etc/letsencrypt/live/${DOMAIN}/fullchain.pem 48 #KEY_PATH=./certs/etc/letsencrypt/live/${DOMAIN}/privkey.pem 49 50 ## Exposed ports to the host. Inside the container 80 and 443 will be used 51 HTTPS_PORT=443 52 HTTP_PORT=80 53 54 # Hungknow settings 55 ## Inside the container the uid and gid is 2000. The folder owner can be set with 56 ## `sudo chown -R 2000:2000 ./volumes/app/hkserver`. 57 HUNGKNOW_CONFIG_PATH=./volumes/app/hkserver/config 58 HUNGKNOW_DATA_PATH=./volumes/app/hkserver/data 59 HUNGKNOW_LOGS_PATH=./volumes/app/hkserver/logs 60 HUNGKNOW_PLUGINS_PATH=./volumes/app/hkserver/plugins 61 HUNGKNOW_CLIENT_PLUGINS_PATH=./volumes/app/hkserver/client-plugins 62 63 ## This will be 'chat-server' based on the version of Mattermost you're installing. 64 HUNGKNOW_IMAGE=chat-server 65 HUNGKNOW_IMAGE_TAG=0.01 66 67 ## The app port is only relevant for using Mattermost without the nginx container as reverse proxy. This is not meant 68 ## to be used with the internal HTTP server exposed but rather in case one wants to host several services on one host 69 ## or for using it behind another existing reverse proxy. 70 APP_PORT=8065 71 72 ## Configuration settings for Mattermost. Documentation on the variables and the settings itself can be found at 73 ## https://docs.hungknow.com/administration/config-settings.html 74 ## Keep in mind that variables set here will take precedence over the same setting in config.json. This includes 75 ## the system console as well and settings set with env variables will be greyed out. 76 77 ## Below one can find necessary settings to spin up the Mattermost container 78 MM_SQLSETTINGS_DRIVERNAME=mysql 79 MM_SQLSETTINGS_DATASOURCE=${MYSQL_USER}:${MYSQL_PASSWORD}@mysql:3306/${MYSQL_DATABASE}?sslmode=disable&connect_timeout=10 80 81 ## Example settings (any additional setting added here also needs to be introduced in the docker-compose.yml) 82 MM_SERVICESETTINGS_SITEURL=https://${DOMAIN} 83 84 # If you use rolling image tags and feel lucky watchtower can automatically pull new images and 85 # instantiate containers from it. https://containrrr.dev/watchtower/ 86 # Please keep in mind watchtower will have access on the docker socket. This can be a security risk. 87 # 88 # watchtower: 89 # container_name: watchtower 90 # image: containrrr/watchtower:latest 91 # restart: unless-stopped 92 # volumes: 93 # - /var/run/docker.sock:/var/run/docker.sock