Repository navigation
Expand file tree
/
Copy path.env.production.example
More file actions
77 lines (68 loc) · 3.19 KB
/
Copy path.env.production.example
File metadata and controls
77 lines (68 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# phpMyFAQ production environment for docker-compose.prod.yml
#
# Copy this file to .env next to docker-compose.prod.yml. Docker Compose reads
# it automatically; Portainer users paste the variables into the stack's
# environment instead. See docs/deployment.md.
# --- Which services to run ---------------------------------------------------
# web server: apache | frankenphp database: mariadb | postgres
# search engine (optional): elasticsearch | opensearch
COMPOSE_PROFILES=apache,mariadb
# --- Image -------------------------------------------------------------------
# Pin a release, e.g. 4.2.0. "latest" always follows the newest stable release.
# Images are published to the GitHub Container Registry.
PMF_IMAGE=ghcr.io/thorsten/phpmyfaq
PMF_VERSION=latest
# --- Ports -------------------------------------------------------------------
PMF_HTTP_PORT=80
# frankenphp only
PMF_HTTPS_PORT=443
# frankenphp only: ":80" = plain HTTP behind a reverse proxy, a public host name
# such as faq.example.com enables automatic HTTPS with Let's Encrypt
SERVER_NAME=:80
# FrankenPHP only, experimental: keep PHP in memory between requests (worker mode).
FRANKENPHP_WORKER_MODE=false
# --- Reverse proxy -------------------------------------------------------------
# IPs or CIDR ranges of the reverse proxy / load balancer in front of the
# container, comma-separated. Only their X-Forwarded-For/-Host/-Port/-Proto
# headers are trusted (client IP, HTTPS detection). REMOTE_ADDR trusts the
# directly connected peer, e.g. a Traefik container on the same network.
# Leave empty when the container is exposed directly.
TRUSTED_PROXIES=
# --- PHP ---------------------------------------------------------------------
PMF_TIMEZONE=UTC
PMF_MEMORY_LIMIT=512M
PHP_UPLOAD_MAX_FILESIZE=64M
PHP_POST_MAX_SIZE=64M
# --- Database (MariaDB profile) ------------------------------------------------
MYSQL_ROOT_PASSWORD=change-me
MYSQL_DATABASE=phpmyfaq
MYSQL_USER=phpmyfaq
MYSQL_PASSWORD=change-me
# --- Database (PostgreSQL profile) ---------------------------------------------
POSTGRES_DB=phpmyfaq
POSTGRES_USER=phpmyfaq
POSTGRES_PASSWORD=change-me
# --- Headless installation (optional) ------------------------------------------
# When PMF_DB_HOST and PMF_ADMIN_PASSWORD are set, the container installs
# phpMyFAQ on its first start with these values. Leave PMF_DB_HOST empty to use
# the web installer at http://<host>/setup/ instead. The values are only read
# while no installation exists; change them later in the administration.
#
# PMF_DB_TYPE: mysqli for MariaDB (PMF_DB_HOST=mariadb), pgsql for PostgreSQL
# (PMF_DB_HOST=postgres)
PMF_DB_TYPE=mysqli
PMF_DB_HOST=mariadb
PMF_DB_NAME=phpmyfaq
PMF_DB_USER=phpmyfaq
PMF_DB_PASS=change-me
PMF_ADMIN_USER=admin
PMF_ADMIN_PASSWORD=change-me-at-least-8-characters
# Public URL of the FAQ, used for absolute links (no trailing slash)
PMF_BASE_URL=http://localhost
# --- Search engine (optional) --------------------------------------------------
# Set exactly one, matching the chosen profile, and enable the search engine in
# the administration afterwards.
ELASTICSEARCH_BASE_URI=
OPENSEARCH_BASE_URI=
# ELASTICSEARCH_BASE_URI=http://elasticsearch:9200
# OPENSEARCH_BASE_URI=http://opensearch:9200