Compose Companion
This is a little CLI tool created for my home server.
It aims to make it easy to configure and document scripts that should run before and/or after the server containers on docker compose go up or down.
Scrips File
The app will read the scripts from a yaml file in the following format:
# compose-companion.yaml
x-before-up:
sonarr:
- echo this will run before sonarr startup
- echo this too will run before sonarr startup, after the previous one
radarr:
- echo this will run before radarr startup
- echo this too will run before radarr startup, after the previous one
x-after-up:
sonarr:
- echo this will run after sonarr startup
- echo this too will run after sonarr startup, after the previous one
radarr:
- echo this will run after radarr startup
- echo this too will run after radarr startup, after the previous one
x-before-down:
sonarr:
- echo this will run before sonarr shutdown
- echo this too will run before sonarr shutdown, after the previous one
radarr:
- echo this will run before radarr shutdown
- echo this too will run before radarr shutdown, after the previous one
x-after-down:
sonarr:
- echo this will run after sonarr shutdown
- echo this too will run after sonarr shutdown, after the previous one
radarr:
- echo this will run after radarr shutdown
- echo this too will run after radarr shutdown, after the previous one
The container keys should match the ones from docker-compose.yaml file.
The app will look for a file named compose-companion.yaml on the folder it's first run, if that's not there it'll ask you to inform the file path manually.
As the top-level keys start with x-, you can use the docker-compose.yaml file itself, if you wish, and these settings will be properly ignored by docker compose.
Commands
For a list of command, run compose --help or simply compose.
For details on each command, run compose [command] --help.
Metadata
Release files for compose-companion 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| compose_companion-0.2.2.tar.gz | 7.1 kB | Without provenance | Details for compose_companion-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| compose_companion-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for compose_companion-0.2.2-py3-none-any.whl |
Total release size: 14.7 kB
Release files / compose_companion-0.2.2.tar.gz
| Download URL | compose_companion-0.2.2.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fb64bcd07b2234eaa6bb25964ac65c3076cd72df8d1b281128871ed9c48462f
|
|
BLAKE2b-256 checksum How to use checksums |
4cc27aef0b68fc13db33238032fc6de6bce39e2edbe8a1cb2bbdc38a8e416acc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.11.0 Linux/6.0.11-300.fc37.x86_64
|
Release files / compose_companion-0.2.2-py3-none-any.whl
| Download URL | compose_companion-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ca69845eb3f471c683929d3417b7feed5dfbe87fa4d0f954fee6dd702ea913f
|
|
BLAKE2b-256 checksum How to use checksums |
ac685a8d40fad68bf3d53393ffae416b83b8ffe5abc362b89f3810ec25b69266
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.11.0 Linux/6.0.11-300.fc37.x86_64
|
Security for compose-companion 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.