mirror of
https://github.com/dokku/dokku.git
synced 2025-12-28 16:06:40 +01:00
This plugin uses a docker-compose based Traefik installation in conjunction with injected container labels to route requests. It only exposes the minimal necessary for routing traffic to docker containers. Users wishing to customize further labels may explore using the docker-options plugin to attach additional labels during the 'deploy' phase.
18 lines
489 B
Bash
Executable File
18 lines
489 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
trigger-traefik-install() {
|
|
declare desc="installs the traefik plugin"
|
|
declare trigger="install"
|
|
|
|
mkdir -p "${DOKKU_LIB_ROOT}/data/traefik"
|
|
chown -R "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "${DOKKU_LIB_ROOT}/data/traefik"
|
|
|
|
fn-plugin-property-setup "traefik"
|
|
}
|
|
|
|
trigger-traefik-install "$@"
|