This repository was archived by the owner on Feb 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.toml
More file actions
54 lines (47 loc) · 1.6 KB
/
plugin.toml
File metadata and controls
54 lines (47 loc) · 1.6 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
[plugin]
# The name of the plugin
name = "docker-compose"
# The version of the plugin
version = "0.1.0"
# A short description of the plugin
description = "Import docker-compose.yml files into Dokku"
# The author of the plugin
author = "Dean Marano"
# The URL of the plugin's documentation
documentation = "https://github.com/deanmarano/dokku-docker-compose"
# The URL of the plugin's issue tracker
repository = "https://github.com/deanmarano/dokku-docker-compose/issues"
# The minimum Dokku version required
[dependencies]
core = ">= 0.30.0"
# Plugin installation and initialization
[installation]
# Commands to run after plugin installation
post_install = """
# Create required directories
mkdir -p "$PLUGIN_ENABLED_PATH"
# Set up logging
mkdir -p "$PLUGIN_DATA_ROOT/logs"
touch "$PLUGIN_DATA_ROOT/logs/plugin.log"
chmod 666 "$PLUGIN_DATA_ROOT/logs/plugin.log"
# Set up configuration
mkdir -p "$PLUGIN_DATA_ROOT/config"
touch "$PLUGIN_DATA_ROOT/config/config"
# Set proper permissions
chown -R dokku:dokku "$PLUGIN_DATA_ROOT"
chmod -R 755 "$PLUGIN_DATA_ROOT"
"""
# Plugin hooks
[hooks]
# Run when the plugin is installed
install = "source $PLUGIN_PATH/core-plugins/available/common/functions && source $PLUGIN_PATH/commands && plugin_install"
# Plugin commands
[commands]
# The main command that will be executed when running `dokku docker-compose`
docker-compose = "/var/lib/dokku/plugins/available/docker-compose/commands"
# Plugin configuration
[config]
# Default configuration values
DOKKU_DOCKER_COMPOSE_LOG_LEVEL = "info"
DOKKU_DOCKER_COMPOSE_MAX_RETRIES = "3"
DOKKU_DOCKER_COMPOSE_TIMEOUT = "300"