|
@@ -1,3 +1,4 @@
|
|
|
+#!/bin/bash
|
|
|
# -*- mode: bash -*-
|
|
|
# vi: ft=bash
|
|
|
|
|
@@ -7,19 +8,6 @@
|
|
|
# Pixelfed application configuration
|
|
|
################################################################################
|
|
|
|
|
|
-# The docker tag prefix to use for pulling images, can be one of
|
|
|
-#
|
|
|
-# * latest
|
|
|
-# * <some semver release>
|
|
|
-# * staging
|
|
|
-# * edge
|
|
|
-# * branch-<some branch name>
|
|
|
-# * pr-<some merge request id>
|
|
|
-#
|
|
|
-# Combined with [DOCKER_RUNTIME] and [PHP_VERSION] configured
|
|
|
-# elsewhere in this file, the final Docker tag is computed.
|
|
|
-PIXELFED_RELEASE="branch-jippi-fork"
|
|
|
-
|
|
|
# A random 32-character string to be used as an encryption key.
|
|
|
#
|
|
|
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
@@ -207,7 +195,7 @@ APP_TIMEZONE="UTC"
|
|
|
# Defaults to "Pixelfed - Photo sharing for everyone".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#instance_description
|
|
|
-#INSTANCE_DESCRIPTION=
|
|
|
+#INSTANCE_DESCRIPTION=""
|
|
|
|
|
|
# Defaults to "false".
|
|
|
#
|
|
@@ -227,7 +215,7 @@ INSTANCE_CONTACT_EMAIL="admin@${APP_DOMAIN}"
|
|
|
# Defaults to "".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#banned_usernames
|
|
|
-#BANNED_USERNAMES=
|
|
|
+#BANNED_USERNAMES=""
|
|
|
|
|
|
# Defaults to "false".
|
|
|
#
|
|
@@ -263,7 +251,7 @@ LETSENCRYPT_EMAIL="__CHANGE_ME__"
|
|
|
# Database version to use (as Docker tag)
|
|
|
#
|
|
|
# See: https://hub.docker.com/_/mariadb
|
|
|
-#DB_VERSION="11.2"
|
|
|
+DB_VERSION="11.2"
|
|
|
|
|
|
# Here you may specify which of the database connections below
|
|
|
# you wish to use as your default connection for all database work.
|
|
@@ -361,12 +349,12 @@ MAIL_FROM_NAME="Pixelfed @ ${APP_DOMAIN}"
|
|
|
# Defaults to "".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#mail_username
|
|
|
-#MAIL_USERNAME=
|
|
|
+#MAIL_USERNAME=""
|
|
|
|
|
|
# Defaults to "".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#mail_password
|
|
|
-#MAIL_PASSWORD=
|
|
|
+#MAIL_PASSWORD=""
|
|
|
|
|
|
# Here you may specify the encryption protocol that should be used when the application send e-mail messages.
|
|
|
#
|
|
@@ -381,11 +369,6 @@ MAIL_FROM_NAME="Pixelfed @ ${APP_DOMAIN}"
|
|
|
# Redis configuration
|
|
|
################################################################################
|
|
|
|
|
|
-# Redis version to use as Docker tag
|
|
|
-#
|
|
|
-# See: https://hub.docker.com/_/redis
|
|
|
-#REDIS_VERSION="7.2"
|
|
|
-
|
|
|
# Defaults to "phpredis".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#redis_client
|
|
@@ -401,17 +384,17 @@ MAIL_FROM_NAME="Pixelfed @ ${APP_DOMAIN}"
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#redis_host
|
|
|
REDIS_HOST="redis"
|
|
|
|
|
|
-# Defaults to null.
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#redis_password
|
|
|
#REDIS_PASSWORD=
|
|
|
|
|
|
-# Defaults to 6379.
|
|
|
+# Defaults to "6379".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#redis_port
|
|
|
-#REDIS_PORT="6379"
|
|
|
+REDIS_PORT="6379"
|
|
|
|
|
|
-# Defaults to 0.
|
|
|
+# Defaults to "0".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#redis_database
|
|
|
#REDIS_DATABASE="0"
|
|
@@ -595,26 +578,26 @@ ACTIVITY_PUB="true"
|
|
|
#MEDIA_DELETE_LOCAL_AFTER_CLOUD="true"
|
|
|
|
|
|
################################################################################
|
|
|
-# Storage (cloud) - S3 andS S3 *compatible* providers (most of them)
|
|
|
+# Storage (cloud) - S3 andS S3 *compatible* providers
|
|
|
################################################################################
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#aws_access_key_id
|
|
|
-#AWS_ACCESS_KEY_ID=
|
|
|
+#AWS_ACCESS_KEY_ID=""
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#aws_secret_access_key
|
|
|
-#AWS_SECRET_ACCESS_KEY=
|
|
|
+#AWS_SECRET_ACCESS_KEY=""
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#aws_default_region
|
|
|
-#AWS_DEFAULT_REGION=
|
|
|
+#AWS_DEFAULT_REGION=""
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#aws_bucket
|
|
|
-#AWS_BUCKET=
|
|
|
+#AWS_BUCKET=""
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#aws_url
|
|
|
-#AWS_URL=
|
|
|
+#AWS_URL=""
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#aws_endpoint
|
|
|
-#AWS_ENDPOINT=
|
|
|
+#AWS_ENDPOINT=""
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#aws_use_path_style_endpoint
|
|
|
#AWS_USE_PATH_STYLE_ENDPOINT="false"
|
|
@@ -625,60 +608,60 @@ ACTIVITY_PUB="true"
|
|
|
|
|
|
# Comma-separated list of domains to block.
|
|
|
#
|
|
|
-# Defaults to null
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cs_blocked_domains
|
|
|
-#CS_BLOCKED_DOMAINS=
|
|
|
+#CS_BLOCKED_DOMAINS=""
|
|
|
|
|
|
# Comma-separated list of domains to add warnings.
|
|
|
#
|
|
|
-# Defaults to null.
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cs_cw_domains
|
|
|
-#CS_CW_DOMAINS=
|
|
|
+#CS_CW_DOMAINS=""
|
|
|
|
|
|
# Comma-separated list of domains to remove from public timelines.
|
|
|
#
|
|
|
-# Defaults to null.
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cs_unlisted_domains
|
|
|
-#CS_UNLISTED_DOMAINS=
|
|
|
+#CS_UNLISTED_DOMAINS=""
|
|
|
|
|
|
# Comma-separated list of keywords to block.
|
|
|
#
|
|
|
-# Defaults to null.
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cs_blocked_keywords
|
|
|
-#CS_BLOCKED_KEYWORDS=
|
|
|
+#CS_BLOCKED_KEYWORDS=""
|
|
|
|
|
|
# Comma-separated list of keywords to add warnings.
|
|
|
#
|
|
|
-# Defaults to null.
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cs_cw_keywords
|
|
|
-#CS_CW_KEYWORDS=
|
|
|
+#CS_CW_KEYWORDS=""
|
|
|
|
|
|
# Comma-separated list of keywords to remove from public timelines.
|
|
|
#
|
|
|
-# Defaults to null.
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cs_unlisted_keywords
|
|
|
-#CS_UNLISTED_KEYWORDS=
|
|
|
+#CS_UNLISTED_KEYWORDS=""
|
|
|
|
|
|
-# Defaults to null.
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cs_blocked_actor
|
|
|
-#CS_BLOCKED_ACTOR=
|
|
|
+#CS_BLOCKED_ACTOR=""
|
|
|
|
|
|
-# Defaults to null.
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cs_cw_actor
|
|
|
-#CS_CW_ACTOR=
|
|
|
+#CS_CW_ACTOR=""
|
|
|
|
|
|
-# Defaults to null.
|
|
|
+# Defaults to null (not set/commented out).
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cs_unlisted_actor
|
|
|
-#CS_UNLISTED_ACTOR=
|
|
|
+#CS_UNLISTED_ACTOR=""
|
|
|
|
|
|
###############################################################
|
|
|
# Media
|
|
@@ -730,14 +713,14 @@ LOG_CHANNEL="stderr"
|
|
|
# Defaults to "".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#log_stderr_formatter
|
|
|
-#LOG_STDERR_FORMATTER=
|
|
|
+#LOG_STDERR_FORMATTER=""
|
|
|
|
|
|
# Used by slack.
|
|
|
#
|
|
|
# Defaults to "".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#log_slack_webhook_url
|
|
|
-#LOG_SLACK_WEBHOOK_URL=
|
|
|
+#LOG_SLACK_WEBHOOK_URL=""
|
|
|
|
|
|
###############################################################
|
|
|
# Broadcasting settings
|
|
@@ -795,7 +778,7 @@ QUEUE_DRIVER="redis"
|
|
|
# Defaults to "https://sqs.us-east-1.amazonaws.com/your-account-id".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#sqs_prefix
|
|
|
-#SQS_PREFIX=
|
|
|
+#SQS_PREFIX=""
|
|
|
|
|
|
# Defaults to "your-queue-name".
|
|
|
#
|
|
@@ -879,60 +862,18 @@ TRUST_PROXIES="*"
|
|
|
# variables when that is more convenient.
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#passport_private_key
|
|
|
-#PASSPORT_PRIVATE_KEY=
|
|
|
+#PASSPORT_PRIVATE_KEY=""
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#passport_public_key
|
|
|
-#PASSPORT_PUBLIC_KEY=
|
|
|
+#PASSPORT_PUBLIC_KEY=""
|
|
|
|
|
|
###############################################################
|
|
|
# PHP configuration
|
|
|
###############################################################
|
|
|
|
|
|
-# The PHP version to use for [web] and [worker] container
|
|
|
-#
|
|
|
-# Any version published on https://hub.docker.com/_/php should work
|
|
|
-#
|
|
|
-# Example:
|
|
|
-#
|
|
|
-# * 8.1
|
|
|
-# * 8.2
|
|
|
-# * 8.2.14
|
|
|
-# * latest
|
|
|
-#
|
|
|
-# Do *NOT* use the full Docker tag (e.g. "8.3.2RC1-fpm-bullseye")
|
|
|
-# *only* the version part. The rest of the full tag is derived from
|
|
|
-# the [DOCKER_RUNTIME] and [PHP_DEBIAN_RELEASE] settings
|
|
|
-PHP_VERSION="8.1"
|
|
|
-
|
|
|
# See: https://www.php.net/manual/en/ini.core.php#ini.memory-limit
|
|
|
#PHP_MEMORY_LIMIT="128M"
|
|
|
|
|
|
-# The Debian release variant to use of the [php] Docker image
|
|
|
-#PHP_DEBIAN_RELEASE="bullseye"
|
|
|
-
|
|
|
-# The [php] Docker image base type
|
|
|
-#
|
|
|
-# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/runtimes.md
|
|
|
-#PHP_BASE_TYPE="apache"
|
|
|
-
|
|
|
-# List of extra APT packages (separated by space) to install when building
|
|
|
-# locally using [docker compose build].
|
|
|
-#
|
|
|
-# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/customizing.md
|
|
|
-#APT_PACKAGES_EXTRA=""
|
|
|
-
|
|
|
-# List of *extra* PECL extensions (separated by space) to install when
|
|
|
-# building locally using [docker compose build].
|
|
|
-#
|
|
|
-# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/customizing.md
|
|
|
-#PHP_PECL_EXTENSIONS_EXTRA=""
|
|
|
-
|
|
|
-# List of *extra* PHP extensions (separated by space) to install when
|
|
|
-# building locally using [docker compose build].
|
|
|
-#
|
|
|
-# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/customizing.md
|
|
|
-#PHP_EXTENSIONS_EXTRA=""
|
|
|
-
|
|
|
################################################################################
|
|
|
# Other configuration
|
|
|
################################################################################
|
|
@@ -951,8 +892,63 @@ PHP_VERSION="8.1"
|
|
|
TZ="${APP_TIMEZONE}"
|
|
|
|
|
|
################################################################################
|
|
|
-# Docker Specific configuration
|
|
|
+# Docker configuraton for *all* services
|
|
|
+################################################################################
|
|
|
+
|
|
|
+# Prefix for container names (without any dash at the end)
|
|
|
+DOCKER_ALL_CONTAINER_NAME_PREFIX="${APP_DOMAIN}"
|
|
|
+
|
|
|
+# How often Docker health check should run for all services
|
|
|
+#
|
|
|
+# Can be overridden by individual [DOCKER_*_HEALTHCHECK_INTERVAL] settings further down
|
|
|
+DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL="10s"
|
|
|
+
|
|
|
+# Path (relative to the docker-compose.yml) or absolute (/some/other/path) where containers will store their data
|
|
|
+DOCKER_ALL_HOST_DATA_ROOT_PATH="./docker-compose-state/data"
|
|
|
+
|
|
|
+# Path (relative to the docker-compose.yml) or absolute (/some/other/path) where containers will store their confguration
|
|
|
+DOCKER_ALL_HOST_CONFIG_ROOT_PATH="./docker-compose-state/config"
|
|
|
+
|
|
|
################################################################################
|
|
|
+# Docker [web] + [worker] (also know as "app") shared service configuration
|
|
|
+################################################################################
|
|
|
+
|
|
|
+# The docker tag prefix to use for pulling images, can be one of
|
|
|
+#
|
|
|
+# * latest
|
|
|
+# * <some semver release>
|
|
|
+# * staging
|
|
|
+# * edge
|
|
|
+# * branch-<some branch name>
|
|
|
+# * pr-<some merge request id>
|
|
|
+#
|
|
|
+# Combined with [DOCKER_APP_RUNTIME] and [PHP_VERSION] configured
|
|
|
+# elsewhere in this file, the final Docker tag is computed.
|
|
|
+DOCKER_APP_RELEASE="branch-jippi-fork"
|
|
|
+
|
|
|
+# The PHP version to use for [web] and [worker] container
|
|
|
+#
|
|
|
+# Any version published on https://hub.docker.com/_/php should work
|
|
|
+#
|
|
|
+# Example:
|
|
|
+#
|
|
|
+# * 8.1
|
|
|
+# * 8.2
|
|
|
+# * 8.2.14
|
|
|
+# * latest
|
|
|
+#
|
|
|
+# Do *NOT* use the full Docker tag (e.g. "8.3.2RC1-fpm-bullseye")
|
|
|
+# *only* the version part. The rest of the full tag is derived from
|
|
|
+# the [DOCKER_APP_RUNTIME] and [PHP_DEBIAN_RELEASE] settings
|
|
|
+DOCKER_APP_PHP_VERSION="8.2"
|
|
|
+
|
|
|
+# The [php] Docker image base type
|
|
|
+#
|
|
|
+# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/runtimes.md
|
|
|
+DOCKER_APP_BASE_TYPE="apache"
|
|
|
+
|
|
|
+# The Debian release variant to use of the [php] Docker image
|
|
|
+DOCKER_APP_DEBIAN_RELEASE="bullseye"
|
|
|
|
|
|
# Image to pull the Pixelfed Docker images from.
|
|
|
#
|
|
@@ -962,129 +958,176 @@ TZ="${APP_TIMEZONE}"
|
|
|
# * "pixelfed/pixelfed" to pull from DockerHub
|
|
|
# * "your/fork" to pull from a custom fork
|
|
|
#
|
|
|
-DOCKER_IMAGE="ghcr.io/jippi/pixelfed"
|
|
|
+DOCKER_APP_IMAGE="ghcr.io/jippi/pixelfed"
|
|
|
|
|
|
# The container runtime to use.
|
|
|
#
|
|
|
# See: https://github.com/jippi/pixelfed/blob/jippi-fork/docker/runtimes.md
|
|
|
-DOCKER_RUNTIME="apache"
|
|
|
+DOCKER_APP_RUNTIME="apache"
|
|
|
|
|
|
# Pixelfed version (image tag) to pull from the registry.
|
|
|
#
|
|
|
# See: https://github.com/pixelfed/pixelfed/pkgs/container/pixelfed
|
|
|
-DOCKER_TAG="${PIXELFED_RELEASE}-${DOCKER_RUNTIME}-${PHP_VERSION}"
|
|
|
-
|
|
|
-# Path (relative to the docker-compose.yml) or absolute (/some/other/path) where containers will store their data
|
|
|
-DOCKER_DATA_ROOT="./docker-compose-state/data"
|
|
|
-
|
|
|
-# Path (relative to the docker-compose.yml) or absolute (/some/other/path) where containers will store their confguration
|
|
|
-DOCKER_CONFIG_ROOT="./docker-compose-state/config"
|
|
|
-
|
|
|
-# Path (on host system) where the [db] container will store its data
|
|
|
-#
|
|
|
-# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
-DOCKER_DB_DATA_PATH="${DOCKER_DATA_ROOT}/db"
|
|
|
-
|
|
|
-# Path (on host system) where the [redis] container will store its data
|
|
|
-#
|
|
|
-# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
-DOCKER_REDIS_DATA_PATH="${DOCKER_DATA_ROOT}/redis"
|
|
|
+DOCKER_APP_TAG="${DOCKER_APP_RELEASE}-${DOCKER_APP_RUNTIME}-${DOCKER_APP_PHP_VERSION}"
|
|
|
|
|
|
# Path (on host system) where the [app] + [worker] container will write
|
|
|
# its [storage] data (e.g uploads/images/profile pictures etc.).
|
|
|
#
|
|
|
# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
-DOCKER_APP_STORAGE_PATH="${DOCKER_DATA_ROOT}/pixelfed/storage"
|
|
|
+DOCKER_APP_HOST_STORAGE_PATH="${DOCKER_ALL_HOST_DATA_ROOT_PATH}/pixelfed/storage"
|
|
|
|
|
|
# Path (on host system) where the [app] + [worker] container will write
|
|
|
# its [cache] data.
|
|
|
#
|
|
|
# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
-DOCKER_APP_CACHE_PATH="${DOCKER_DATA_ROOT}/pixelfed/cache"
|
|
|
+DOCKER_APP_HOST_CACHE_PATH="${DOCKER_ALL_HOST_DATA_ROOT_PATH}/pixelfed/cache"
|
|
|
|
|
|
-# How often Docker health check should run for all services
|
|
|
+# Automatically run "One-time setup tasks" commands.
|
|
|
#
|
|
|
-# Can be overridden by individual [DOCKER_*_HEALTHCHECK_INTERVAL] settings further down
|
|
|
-DOCKER_DEFAULT_HEALTHCHECK_INTERVAL="10s"
|
|
|
+# If you are migrating to this docker-compose setup or have manually run the "One time seutp"
|
|
|
+# tasks (https://docs.pixelfed.org/running-pixelfed/installation/#setting-up-services)
|
|
|
+# you can set this to "0" to prevent them from running.
|
|
|
+#
|
|
|
+# Otherwise, leave it at "1" to have them run *once*.
|
|
|
+#DOCKER_APP_RUN_ONE_TIME_SETUP_TASKS="1"
|
|
|
+
|
|
|
+# A space-seperated list of paths (inside the container) to *recursively* [chown]
|
|
|
+# to the container user/group id (UID/GID) in case of permission issues.
|
|
|
+#
|
|
|
+# ! You should *not* leave this on permanently, at it can significantly slow down startup
|
|
|
+# ! time for the container, and during normal operations there should never be permission
|
|
|
+# ! issues. Please report a bug if you see behavior requiring this to be permanently on
|
|
|
+#
|
|
|
+# Example: "/var/www/storage /var/www/bootstrap/cache"
|
|
|
+#DOCKER_APP_ENSURE_OWNERSHIP_PATHS=""
|
|
|
+
|
|
|
+# Enable Docker Entrypoint debug mode (will call [set -x] in bash scripts)
|
|
|
+# by setting this to "1".
|
|
|
+#DOCKER_APP_ENTRYPOINT_DEBUG="0"
|
|
|
+
|
|
|
+# List of extra APT packages (separated by space) to install when building
|
|
|
+# locally using [docker compose build].
|
|
|
+#
|
|
|
+# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/customizing.md
|
|
|
+#DOCKER_APP_APT_PACKAGES_EXTRA=""
|
|
|
+
|
|
|
+# List of *extra* PECL extensions (separated by space) to install when
|
|
|
+# building locally using [docker compose build].
|
|
|
+#
|
|
|
+# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/customizing.md
|
|
|
+#DOCKER_APP_PHP_PECL_EXTENSIONS_EXTRA=""
|
|
|
+
|
|
|
+# List of *extra* PHP extensions (separated by space) to install when
|
|
|
+# building locally using [docker compose build].
|
|
|
+#
|
|
|
+# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/customizing.md
|
|
|
+#DOCKER_APP_PHP_EXTENSIONS_EXTRA=""
|
|
|
+
|
|
|
+################################################################################
|
|
|
+# Docker [redis] service configuration
|
|
|
+################################################################################
|
|
|
+
|
|
|
+# Redis version to use as Docker tag
|
|
|
+#
|
|
|
+# See: https://hub.docker.com/_/redis
|
|
|
+DOCKER_REDIS_VERSION="7.2"
|
|
|
+
|
|
|
+# Path (on host system) where the [redis] container will store its data
|
|
|
+#
|
|
|
+# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
+DOCKER_REDIS_HOST_DATA_PATH="${DOCKER_ALL_HOST_DATA_ROOT_PATH}/redis"
|
|
|
|
|
|
# Port that Redis will listen on *outside* the container (e.g. the host machine)
|
|
|
-DOCKER_REDIS_PORT_EXTERNAL="${REDIS_PORT:-6379}"
|
|
|
+DOCKER_REDIS_HOST_PORT="${REDIS_PORT}"
|
|
|
|
|
|
# The filename that Redis should store its config file within
|
|
|
#
|
|
|
# NOTE: The file *MUST* exists (even empty) before enabling this setting!
|
|
|
#
|
|
|
-# Use a command like [touch "${DOCKER_CONFIG_ROOT}/redis/redis.conf"] to create it.
|
|
|
+# Use a command like [touch "${DOCKER_ALL_HOST_CONFIG_ROOT_PATH}/redis/redis.conf"] to create it.
|
|
|
#
|
|
|
# Defaults to ""
|
|
|
#DOCKER_REDIS_CONFIG_FILE="/etc/redis/redis.conf"
|
|
|
|
|
|
# How often Docker health check should run for [redis] service
|
|
|
-DOCKER_REDIS_HEALTHCHECK_INTERVAL="${DOCKER_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
+#
|
|
|
+# Defaults to "10s"
|
|
|
+DOCKER_REDIS_HEALTHCHECK_INTERVAL="${DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
+
|
|
|
+################################################################################
|
|
|
+# Docker [db] service configuration
|
|
|
+################################################################################
|
|
|
+
|
|
|
+# Set this to a non-empty value (e.g. "disabled") to disable the [db] service
|
|
|
+#DOCKER_DB_PROFILE=""
|
|
|
+
|
|
|
+# Path (on host system) where the [db] container will store its data
|
|
|
+#
|
|
|
+# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
+DOCKER_DB_HOST_DATA_PATH="${DOCKER_ALL_HOST_DATA_ROOT_PATH}/db"
|
|
|
|
|
|
# Port that the database will listen on *outside* the container (e.g. the host machine)
|
|
|
#
|
|
|
# Use "3306" for MySQL/MariaDB and "5432" for PostgreeSQL
|
|
|
-DOCKER_DB_PORT_EXTERNAL="${DB_PORT}"
|
|
|
+DOCKER_DB_HOST_PORT="${DB_PORT}"
|
|
|
|
|
|
# How often Docker health check should run for [db] service
|
|
|
-DOCKER_DB_HEALTHCHECK_INTERVAL="${DOCKER_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
+DOCKER_DB_HEALTHCHECK_INTERVAL="${DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
|
|
|
-# Port that the [proxy] will listen on *outside* the container (e.g. the host machine) for HTTP traffic
|
|
|
-DOCKER_PROXY_PORT_EXTERNAL_HTTP="80"
|
|
|
+################################################################################
|
|
|
+# Docker [web] service configuration
|
|
|
+################################################################################
|
|
|
|
|
|
-# Port that the [proxy] will listen on *outside* the container (e.g. the host machine) for HTTPS traffic
|
|
|
-DOCKER_PROXY_PORT_EXTERNAL_HTTPS="443"
|
|
|
+# Set this to a non-empty value (e.g. "disabled") to disable the [web] service
|
|
|
+#DOCKER_WEB_PROFILE=""
|
|
|
|
|
|
# Port to expose [web] container will listen on *outside* the container (e.g. the host machine) for *HTTP* traffic only
|
|
|
DOCKER_WEB_PORT_EXTERNAL_HTTP="8080"
|
|
|
|
|
|
# How often Docker health check should run for [web] service
|
|
|
-DOCKER_WEB_HEALTHCHECK_INTERVAL="${DOCKER_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
+DOCKER_WEB_HEALTHCHECK_INTERVAL="${DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
|
|
|
-# How often Docker health check should run for [worker] service
|
|
|
-DOCKER_WORKER_HEALTHCHECK_INTERVAL="${DOCKER_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
+################################################################################
|
|
|
+# Docker [worker] service configuration
|
|
|
+################################################################################
|
|
|
|
|
|
-# Path to the Docker socket on the *host*
|
|
|
-DOCKER_HOST_SOCKET_PATH="/var/run/docker.sock"
|
|
|
+# Set this to a non-empty value (e.g. "disabled") to disable the [worker] service
|
|
|
+#DOCKER_WORKER_PROFILE=""
|
|
|
|
|
|
-# Prefix for container names (without any dash at the end)
|
|
|
-DOCKER_CONTAINER_NAME_PREFIX="${APP_DOMAIN}"
|
|
|
+# How often Docker health check should run for [worker] service
|
|
|
+DOCKER_WORKER_HEALTHCHECK_INTERVAL="${DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
+
|
|
|
+################################################################################
|
|
|
+# Docker [proxy] + [proxy-acme] service configuration
|
|
|
+################################################################################
|
|
|
|
|
|
# Set this to a non-empty value (e.g. "disabled") to disable the [proxy] and [proxy-acme] service
|
|
|
-DOCKER_PROXY_PROFILE=""
|
|
|
+#DOCKER_PROXY_PROFILE=""
|
|
|
|
|
|
# Set this to a non-empty value (e.g. "disabled") to disable the [proxy-acme] service
|
|
|
-DOCKER_PROXY_ACME_PROFILE="${DOCKER_PROXY_PROFILE}"
|
|
|
+#DOCKER_PROXY_ACME_PROFILE="${DOCKER_PROXY_PROFILE:-}"
|
|
|
|
|
|
# How often Docker health check should run for [proxy] service
|
|
|
-DOCKER_PROXY_HEALTHCHECK_INTERVAL="${DOCKER_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
+DOCKER_PROXY_HEALTHCHECK_INTERVAL="${DOCKER_ALL_DEFAULT_HEALTHCHECK_INTERVAL}"
|
|
|
|
|
|
-# Automatically run "One-time setup tasks" commands.
|
|
|
-#
|
|
|
-# If you are migrating to this docker-compose setup or have manually run the "One time seutp"
|
|
|
-# tasks (https://docs.pixelfed.org/running-pixelfed/installation/#setting-up-services)
|
|
|
-# you can set this to "0" to prevent them from running.
|
|
|
-#
|
|
|
-# Otherwise, leave it at "1" to have them run *once*.
|
|
|
-#DOCKER_RUN_ONE_TIME_SETUP_TASKS="1"
|
|
|
+# Port that the [proxy] will listen on *outside* the container (e.g. the host machine) for HTTP traffic
|
|
|
+DOCKER_PROXY_HOST_PORT_HTTP="80"
|
|
|
|
|
|
-# A space-seperated list of paths (inside the container) to *recursively* [chown]
|
|
|
-# to the container user/group id (UID/GID) in case of permission issues.
|
|
|
-#
|
|
|
-# ! You should *not* leave this on permanently, at it can significantly slow down startup
|
|
|
-# ! time for the container, and during normal operations there should never be permission
|
|
|
-# ! issues. Please report a bug if you see behavior requiring this to be permanently on
|
|
|
-#
|
|
|
-# Example: "/var/www/storage /var/www/bootstrap/cache"
|
|
|
-#DOCKER_ENSURE_OWNERSHIP_PATHS=""
|
|
|
+# Port that the [proxy] will listen on *outside* the container (e.g. the host machine) for HTTPS traffic
|
|
|
+DOCKER_PROXY_HOST_PORT_HTTPS="443"
|
|
|
|
|
|
-# Enable Docker Entrypoint debug mode (will call [set -x] in bash scripts)
|
|
|
-# by setting this to "1".
|
|
|
-#ENTRYPOINT_DEBUG="0"
|
|
|
+# Path to the Docker socket on the *host*
|
|
|
+DOCKER_PROXY_HOST_DOCKER_SOCKET_PATH="/var/run/docker.sock"
|
|
|
+
|
|
|
+# ! ----------------------------------------------------------------------------
|
|
|
+# ! STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP
|
|
|
+# ! ----------------------------------------------------------------------------
|
|
|
+# ! Below this line is default environment variables for various [db] backends
|
|
|
+# ! You very likely do *NOT* need to modify any of this, ever.
|
|
|
+# ! ----------------------------------------------------------------------------
|
|
|
|
|
|
################################################################################
|
|
|
-# MySQL DB container configuration
|
|
|
+# Docker [db] service environment variables for MySQL (Oracle)
|
|
|
################################################################################
|
|
|
#
|
|
|
# See "Environment Variables" at https://hub.docker.com/_/mysql
|
|
@@ -1097,7 +1140,7 @@ MYSQL_PASSWORD="${DB_PASSWORD}"
|
|
|
MYSQL_DATABASE="${DB_DATABASE}"
|
|
|
|
|
|
################################################################################
|
|
|
-# MySQL (MariaDB) DB container configuration
|
|
|
+# Docker [db] service environment variables for MySQL (MariaDB)
|
|
|
################################################################################
|
|
|
#
|
|
|
# See "Start a mariadb server instance with user, password and database"
|
|
@@ -1111,7 +1154,7 @@ MARIADB_PASSWORD="${DB_PASSWORD}"
|
|
|
MARIADB_DATABASE="${DB_DATABASE}"
|
|
|
|
|
|
################################################################################
|
|
|
-# PostgreSQL DB container configuration
|
|
|
+# Docker [db] service environment variables for PostgreSQL
|
|
|
################################################################################
|
|
|
#
|
|
|
# See "Environment Variables" at https://hub.docker.com/_/postgres
|