|
@@ -1,60 +1,24 @@
|
|
|
-# shellcheck disable=SC2034,SC2148
|
|
|
-
|
|
|
# -*- mode: bash -*-
|
|
|
# vi: ft=bash
|
|
|
|
|
|
-###############################################################
|
|
|
-# Docker-wide configuration
|
|
|
-###############################################################
|
|
|
-
|
|
|
-# Path (relative to the docker-compose.yml) or absolute (/some/other/path) file where containers will store their data
|
|
|
-DOCKER_DATA_ROOT="./docker-compose/data"
|
|
|
-
|
|
|
-# Path (relative to the docker-compose.yml) or absolute (/some/other/path) file where containers will store their confguration
|
|
|
-DOCKER_CONFIG_ROOT="./docker-compose/config"
|
|
|
-
|
|
|
-# Image to pull the Pixelfed Docker images from
|
|
|
-#
|
|
|
-# Possible values:
|
|
|
-# - "ghcr.io/pixelfed/pixelfed" to pull from GitHub
|
|
|
-# - "pixelfed/pixelfed" to pull from DockerHub
|
|
|
-#
|
|
|
-DOCKER_IMAGE="ghcr.io/jippi/pixelfed"
|
|
|
-
|
|
|
-# Pixelfed version (image tag) to pull from the registry.
|
|
|
-#
|
|
|
-# See: https://github.com/pixelfed/pixelfed/pkgs/container/pixelfed
|
|
|
-DOCKER_TAG="branch-jippi-fork-apache-8.1"
|
|
|
+# shellcheck disable=SC2034,SC2148
|
|
|
|
|
|
-# Set timezone used by *all* containers - these should be in sync.
|
|
|
-#
|
|
|
-# See: https://www.php.net/manual/en/timezones.php
|
|
|
-TZ="UTC"
|
|
|
+################################################################################
|
|
|
+# Pixelfed application configuration
|
|
|
+################################################################################
|
|
|
|
|
|
-# Automatically run "One-time setup tasks" commands.
|
|
|
+# The docker tag prefix to use for pulling images, can be one of
|
|
|
#
|
|
|
-# 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.
|
|
|
+# * latest
|
|
|
+# * <some semver release>
|
|
|
+# * staging
|
|
|
+# * edge
|
|
|
+# * branch-<some branch name>
|
|
|
+# * pr-<some merge request id>
|
|
|
#
|
|
|
-# Otherwise, leave it at "1" to have them run *once*.
|
|
|
-DOCKER_RUN_ONE_TIME_SETUP_TASKS="1"
|
|
|
-
|
|
|
-# The e-mail to use for Lets Encrypt certificate requests.
|
|
|
-LETSENCRYPT_EMAIL="__CHANGE_ME__"
|
|
|
-
|
|
|
-# Lets Encrypt staging/test servers for certificate requests.
|
|
|
-#
|
|
|
-# Setting this to any value will change to letsencrypt test servers.
|
|
|
-#LETSENCRYPT_TEST="1"
|
|
|
-
|
|
|
-# Enable Docker Entrypoint debug mode (will call [set -x] in bash scripts)
|
|
|
-# by setting this to "1".
|
|
|
-#ENTRYPOINT_DEBUG="0"
|
|
|
-
|
|
|
-###############################################################
|
|
|
-# Pixelfed application configuration
|
|
|
-###############################################################
|
|
|
+# 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.
|
|
|
#
|
|
@@ -80,7 +44,7 @@ APP_DOMAIN="__CHANGE_ME__"
|
|
|
# You should set this to the root of your application so that it is used when running Artisan tasks.
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#app_url
|
|
|
-APP_URL=https://${APP_DOMAIN}
|
|
|
+APP_URL="https://${APP_DOMAIN}"
|
|
|
|
|
|
# Application domains used for routing.
|
|
|
#
|
|
@@ -104,7 +68,7 @@ ADMIN_DOMAIN="${APP_DOMAIN}"
|
|
|
# Enable/disable new local account registrations.
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#open_registration
|
|
|
-#OPEN_REGISTRATION=true
|
|
|
+#OPEN_REGISTRATION="true"
|
|
|
|
|
|
# Require email verification before a new user can do anything.
|
|
|
#
|
|
@@ -130,11 +94,11 @@ OAUTH_ENABLED="true"
|
|
|
|
|
|
# Defaults to "UTC".
|
|
|
#
|
|
|
-# Do not edit your timezone or things will break!
|
|
|
+# ! Do not edit your timezone once the service is running - or things will break!
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#app_timezone
|
|
|
# See: https://www.php.net/manual/en/timezones.php
|
|
|
-APP_TIMEZONE="${TZ}"
|
|
|
+APP_TIMEZONE="UTC"
|
|
|
|
|
|
# The application locale determines the default locale that will be used by the translation service provider.
|
|
|
# You are free to set this value to any of the locales which will be supported by the application.
|
|
@@ -277,11 +241,27 @@ INSTANCE_CONTACT_EMAIL="admin@${APP_DOMAIN}"
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#restricted_instance
|
|
|
#RESTRICTED_INSTANCE="false"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
+# Lets Encrypt configuration
|
|
|
+################################################################################
|
|
|
+
|
|
|
+# The host to request LetsEncrypt certificate for
|
|
|
+LETSENCRYPT_HOST="${APP_DOMAIN}"
|
|
|
+
|
|
|
+# The e-mail to use for Lets Encrypt certificate requests.
|
|
|
+LETSENCRYPT_EMAIL="__CHANGE_ME__"
|
|
|
+
|
|
|
+# Lets Encrypt staging/test servers for certificate requests.
|
|
|
+#
|
|
|
+# Setting this to any value will change to letsencrypt test servers.
|
|
|
+#LETSENCRYPT_TEST="1"
|
|
|
+
|
|
|
+################################################################################
|
|
|
# Database configuration
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
-# Here you may specify which of the database connections below you wish to use as your default connection for all database work.
|
|
|
+# Here you may specify which of the database connections below
|
|
|
+# you wish to use as your default connection for all database work.
|
|
|
#
|
|
|
# Of course you may use many connections at once using the database library.
|
|
|
#
|
|
@@ -313,11 +293,11 @@ DB_DATABASE="pixelfed_prod"
|
|
|
DB_PORT="3306"
|
|
|
|
|
|
# Automatically run [artisan migrate --force] if new migrations are detected.
|
|
|
-DB_APPLY_NEW_MIGRATIONS_AUTOMATICALLY="0"
|
|
|
+DB_APPLY_NEW_MIGRATIONS_AUTOMATICALLY="false"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
# Mail configuration
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
# Laravel supports both SMTP and PHP’s “mail” function as drivers for the sending of e-mail.
|
|
|
# You may specify which one you’re using throughout your application here.
|
|
@@ -392,9 +372,9 @@ MAIL_FROM_NAME="Pixelfed @ ${APP_DOMAIN}"
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#mail_encryption
|
|
|
#MAIL_ENCRYPTION="tls"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
# Redis configuration
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
# Defaults to "phpredis".
|
|
|
#
|
|
@@ -419,16 +399,16 @@ REDIS_HOST="redis"
|
|
|
# Defaults to 6379.
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#redis_port
|
|
|
-REDIS_PORT="6379"
|
|
|
+#REDIS_PORT="6379"
|
|
|
|
|
|
# Defaults to 0.
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#redis_database
|
|
|
#REDIS_DATABASE="0"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
# Cache settings
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
# This option controls the default cache connection that gets used while using this caching library.
|
|
|
#
|
|
@@ -448,11 +428,11 @@ CACHE_DRIVER="redis"
|
|
|
# Defaults to ${APP_NAME}_cache, or laravel_cache if no APP_NAME is set.
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#cache_prefix
|
|
|
-# CACHE_PREFIX="{APP_NAME}_cache"
|
|
|
+#CACHE_PREFIX="{APP_NAME}_cache"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
# Horizon settings
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
# This prefix will be used when storing all Horizon data in Redis.
|
|
|
#
|
|
@@ -498,9 +478,9 @@ CACHE_DRIVER="redis"
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#horizon_supervisor_timeout
|
|
|
#HORIZON_SUPERVISOR_TIMEOUT="300"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
# Experiments
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
# Text only posts (alpha).
|
|
|
#
|
|
@@ -523,16 +503,16 @@ CACHE_DRIVER="redis"
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#exp_cpt
|
|
|
#EXP_CPT="false"
|
|
|
|
|
|
-# Enforce Mastoapi Compatibility (alpha).
|
|
|
+# Enforce Mastodon API Compatibility (alpha).
|
|
|
#
|
|
|
# Defaults to "true".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#exp_emc
|
|
|
-EXP_EMC="true"
|
|
|
+#EXP_EMC="true"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
# ActivityPub confguration
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
# Defaults to "false".
|
|
|
#
|
|
@@ -559,9 +539,9 @@ ACTIVITY_PUB="true"
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#ap_outbox
|
|
|
#AP_OUTBOX="true"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
# Federation confguration
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
# Defaults to "true".
|
|
|
#
|
|
@@ -578,9 +558,9 @@ ACTIVITY_PUB="true"
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#webfinger
|
|
|
#WEBFINGER="true"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
# Storage (cloud)
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
# Store media on object storage like S3, Digital Ocean Spaces, Rackspace
|
|
|
#
|
|
@@ -604,9 +584,9 @@ ACTIVITY_PUB="true"
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#media_delete_local_after_cloud
|
|
|
#MEDIA_DELETE_LOCAL_AFTER_CLOUD="true"
|
|
|
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
# Storage (cloud) - S3 andS S3 *compatible* providers (most of them)
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#aws_access_key_id
|
|
|
#AWS_ACCESS_KEY_ID=
|
|
@@ -765,10 +745,10 @@ LOG_CHANNEL="stderr"
|
|
|
BROADCAST_DRIVER="redis"
|
|
|
|
|
|
###############################################################
|
|
|
-# Other settings
|
|
|
+# Sanitizing settings
|
|
|
###############################################################
|
|
|
|
|
|
-# Defaults to true.
|
|
|
+# Defaults to "true".
|
|
|
#
|
|
|
# See: https://docs.pixelfed.org/technical-documentation/config/#restrict_html_types
|
|
|
#RESTRICT_HTML_TYPES="true"
|
|
@@ -898,52 +878,122 @@ TRUST_PROXIES="*"
|
|
|
# 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"
|
|
|
|
|
|
-###############################################################
|
|
|
-# MySQL DB container configuration (DO NOT CHANGE)
|
|
|
-###############################################################
|
|
|
-#
|
|
|
-# See "Environment Variables" at https://hub.docker.com/_/mysql
|
|
|
+# The Debian release variant to use of the [php] Docker image
|
|
|
+#PHP_DEBIAN_RELEASE="bullseye"
|
|
|
|
|
|
-MYSQL_ROOT_PASSWORD="${DB_PASSWORD}"
|
|
|
-MYSQL_USER="${DB_USERNAME}"
|
|
|
-MYSQL_PASSWORD="${DB_PASSWORD}"
|
|
|
-MYSQL_DATABASE="${DB_DATABASE}"
|
|
|
+# The [php] Docker image base type
|
|
|
+#
|
|
|
+# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/runtimes.md
|
|
|
+#PHP_BASE_TYPE="apache"
|
|
|
|
|
|
-###############################################################
|
|
|
-# MySQL (MariaDB) DB container configuration (DO NOT CHANGE)
|
|
|
-###############################################################
|
|
|
+# List of extra APT packages (separated by space) to install when building
|
|
|
+# locally using [docker compose build].
|
|
|
#
|
|
|
-# See "Start a mariadb server instance with user, password and database" at https://hub.docker.com/_/mariadb
|
|
|
+# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/customizing.md
|
|
|
+#APT_PACKAGES_EXTRA=""
|
|
|
|
|
|
-MARIADB_ROOT_PASSWORD="${DB_PASSWORD}"
|
|
|
-MARIADB_USER="${DB_USERNAME}"
|
|
|
-MARIADB_PASSWORD="${DB_PASSWORD}"
|
|
|
-MARIADB_DATABASE="${DB_DATABASE}"
|
|
|
+# 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=""
|
|
|
|
|
|
-###############################################################
|
|
|
-# PostgreSQL DB container configuration (DO NOT CHANGE)
|
|
|
-###############################################################
|
|
|
+# List of *extra* PHP extensions (separated by space) to install when
|
|
|
+# building locally using [docker compose build].
|
|
|
#
|
|
|
-# See "Environment Variables" at https://hub.docker.com/_/postgres
|
|
|
+# See: https://github.com/pixelfed/pixelfed/blob/dev/docker/customizing.md
|
|
|
+#PHP_EXTENSIONS_EXTRA=""
|
|
|
|
|
|
-POSTGRES_USER="${DB_USERNAME}"
|
|
|
-POSTGRES_PASSWORD="${DB_PASSWORD}"
|
|
|
-POSTGRES_DB="${DB_DATABASE}"
|
|
|
+################################################################################
|
|
|
+# Other configuration
|
|
|
+################################################################################
|
|
|
|
|
|
-###############################################################
|
|
|
-# Lets Encrypt configuration
|
|
|
-###############################################################
|
|
|
+# ? Add your own configuration here
|
|
|
|
|
|
-LETSENCRYPT_HOST="${APP_DOMAIN}"
|
|
|
+################################################################################
|
|
|
+# Timezone configuration
|
|
|
+################################################################################
|
|
|
|
|
|
-###############################################################
|
|
|
+# Set timezone used by *all* containers - these must be in sync.
|
|
|
+#
|
|
|
+# ! Do not edit your timezone once the service is running - or things will break!
|
|
|
+#
|
|
|
+# See: https://www.php.net/manual/en/timezones.php
|
|
|
+TZ="${APP_TIMEZONE}"
|
|
|
+
|
|
|
+################################################################################
|
|
|
# Docker Specific configuration
|
|
|
-###############################################################
|
|
|
+################################################################################
|
|
|
+
|
|
|
+# Image to pull the Pixelfed Docker images from.
|
|
|
+#
|
|
|
+# Example values:
|
|
|
+#
|
|
|
+# * "ghcr.io/pixelfed/pixelfed" to pull from GitHub
|
|
|
+# * "pixelfed/pixelfed" to pull from DockerHub
|
|
|
+# * "your/fork" to pull from a custom fork
|
|
|
+#
|
|
|
+DOCKER_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"
|
|
|
+
|
|
|
+# 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"
|
|
|
+
|
|
|
+# 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"
|
|
|
+
|
|
|
+# 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"
|
|
|
+
|
|
|
# Port that Redis will listen on *outside* the container (e.g. the host machine)
|
|
|
-DOCKER_REDIS_PORT_EXTERNAL="${REDIS_PORT}"
|
|
|
+DOCKER_REDIS_PORT_EXTERNAL="${REDIS_PORT:-6379}"
|
|
|
|
|
|
# Port that the database will listen on *outside* the container (e.g. the host machine)
|
|
|
#
|
|
@@ -971,30 +1021,64 @@ 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}"
|
|
|
|
|
|
-# 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"
|
|
|
+# 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"
|
|
|
|
|
|
-# Path (on host system) where the [db] container will store its data
|
|
|
+# 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.
|
|
|
#
|
|
|
-# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
-DB_DATA_PATH="${DOCKER_DATA_ROOT}/db"
|
|
|
+# ! 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=""
|
|
|
|
|
|
-# Path (on host system) where the [redis] container will store its data
|
|
|
+# Enable Docker Entrypoint debug mode (will call [set -x] in bash scripts)
|
|
|
+# by setting this to "1".
|
|
|
+#ENTRYPOINT_DEBUG="0"
|
|
|
+
|
|
|
+################################################################################
|
|
|
+# MySQL DB container configuration
|
|
|
+################################################################################
|
|
|
#
|
|
|
-# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
-REDIS_DATA_PATH="${DOCKER_DATA_ROOT}/redis"
|
|
|
+# See "Environment Variables" at https://hub.docker.com/_/mysql
|
|
|
+#
|
|
|
+# ! DO NOT CHANGE unless you know what you are doing
|
|
|
|
|
|
-# Path (on host system) where the [app] + [worker] container will write
|
|
|
-# its [storage] data (e.g uploads/images/profile pictures etc.).
|
|
|
+MYSQL_ROOT_PASSWORD="${DB_PASSWORD}"
|
|
|
+MYSQL_USER="${DB_USERNAME}"
|
|
|
+MYSQL_PASSWORD="${DB_PASSWORD}"
|
|
|
+MYSQL_DATABASE="${DB_DATABASE}"
|
|
|
+
|
|
|
+################################################################################
|
|
|
+# MySQL (MariaDB) DB container configuration
|
|
|
+################################################################################
|
|
|
#
|
|
|
-# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
-APP_STORAGE_PATH="${DOCKER_DATA_ROOT}/pixelfed/storage"
|
|
|
+# See "Start a mariadb server instance with user, password and database"
|
|
|
+# at https://hub.docker.com/_/mariadb
|
|
|
+#
|
|
|
+# ! DO NOT CHANGE unless you know what you are doing
|
|
|
|
|
|
-# Path (on host system) where the [app] + [worker] container will write
|
|
|
-# its [cache] data.
|
|
|
+MARIADB_ROOT_PASSWORD="${DB_PASSWORD}"
|
|
|
+MARIADB_USER="${DB_USERNAME}"
|
|
|
+MARIADB_PASSWORD="${DB_PASSWORD}"
|
|
|
+MARIADB_DATABASE="${DB_DATABASE}"
|
|
|
+
|
|
|
+################################################################################
|
|
|
+# PostgreSQL DB container configuration
|
|
|
+################################################################################
|
|
|
#
|
|
|
-# Path is relative (./some/other/path) to the docker-compose.yml or absolute (/some/other/path)
|
|
|
-APP_CACHE_PATH="${DOCKER_DATA_ROOT}/pixelfed/cache"
|
|
|
+# See "Environment Variables" at https://hub.docker.com/_/postgres
|
|
|
+#
|
|
|
+# ! DO NOT CHANGE unless you know what you are doing
|
|
|
+
|
|
|
+POSTGRES_USER="${DB_USERNAME}"
|
|
|
+POSTGRES_PASSWORD="${DB_PASSWORD}"
|
|
|
+POSTGRES_DB="${DB_DATABASE}"
|