docs: add a note about alternative method for plugin installation for docker-based installs

This commit is contained in:
josegonzalez authored and GitHub committed 2023-03-14 07:38:40 -04:00
1 parent b31dda1348
commit 9f410a1a5a
1 file changed
+12
+12
View File
@@ -40,6 +40,8 @@ Other docker container options can also be used when running Dokku, though the s
## Plugin Installation ## Plugin Installation
### On Dokku start
To install custom plugins, create a `plugin-list` file in the host's `/var/lib/dokku` directory. The plugins listed herein will be automatically installed by Dokku on container boot. This file should be the following format: To install custom plugins, create a `plugin-list` file in the host's `/var/lib/dokku` directory. The plugins listed herein will be automatically installed by Dokku on container boot. This file should be the following format:
```yaml ```yaml
@@ -53,6 +55,16 @@ postgres: https://github.com/dokku/dokku-postgres.git
redis: https://github.com/dokku/dokku-redis.git redis: https://github.com/dokku/dokku-redis.git
``` ```
### Prior to Dokku start
The alternative is to build a custom docker image via a custom Dockerfile. This Dockerfile can run any `plugin:install` command. Note that the version installed at that time will be the one that persists. Below is an example Dockerfile showing this method.
```Dockerfile
FROM dokku/dokku:0.30.1
RUN dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres
RUN dokku plugin:install https://github.com/dokku/dokku-redis.git redis
```
## SSH Key Management ## SSH Key Management
To initialize ssh-keys within the container, use `docker exec` to enter the container and run the appropriate ssh-keys commands. To initialize ssh-keys within the container, use `docker exec` to enter the container and run the appropriate ssh-keys commands.