Skip to main content

trado

TODO: FIX IT

Dumb and dirty docker-compose files generator for traefik exposing

All services described in one services.toml file and converted to more or less docker-compose compatible blocks. Top-level keys is services name, images, environment, volumes, ports is mirrored to docker-compose.

Services exposure to traefik

The most complicated part is public key, which is used to generate traefik labels. public signature is:

public: <host>[/<path>][@port]
  • host directly used as hostname in traefik labels. TLS with letsencrypt is enabled by default.
  • path is optional and used as path in traefik. New service will be exposed with https://host/path but after proxing the path will be truncated. Be careful, host without path must be configured in a diffrenent service at least once.
  • port: it's a hint for traefik to find a proper port for proxying

Notice, that default networks for all services with public defined is traefik.

Options

  • image: docker image name
  • envs: list of environment variables
    • doppler: extract list of variables from doppler
  • volumes: list of volumes
  • ports: list of ports
  • restart: restart policy, default is always
  • networks: list of networks. Default is traefik for every service with public defined but can be extended.
  • labels: list of labels. For every public service it's filled with traefik-specific labels.
    • watchtower: add label to enable and disable autoupdate of service with watchtower

Example

[gitea]
image = "gitea/gitea:latest"
public = "git.rubedo.cloud @ 3000"
doppler = true
wathctower = true
volumes = ["./data:/data"]

ports = ["3000:3000", "2222:22"]
    [gitea.envs]
    USER_UID = 1000
    USER_GID = 1000
    TEST = "test"

[asdf]
image = "containous/whoami"
public = "asdf.rubedo.cloud"
restart = "unless-stopped"

[whoami2]
image = "containous/whoami"
public = "git.rubedo.cloud /test"
restart = "unless-stopped"
labels = "testlabel=true"

[blah]
image = "containous/whoami" # not exposed to traefik at all

Metadata

Release files for trado 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trado 0.4.2
File Size Uploaded Provenance Actions
trado-0.4.2.tar.gz 5.6 kB Without provenance Details for trado-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trado 0.4.2
File Interpreter ABI Platform Actions
trado-0.4.2-py3-none-any.whl Python 3 none any Details for trado-0.4.2-py3-none-any.whl

Total release size: 11.3 kB

Release files / trado-0.4.2.tar.gz

Download URL trado-0.4.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b47b85d1862c857576aa4128a665ec610e9d893aa768724dd2548f102e3fe976
BLAKE2b-256 checksum
How to use checksums
04fdc59951a845f582bf56ccf58501787a199ad51ac1d980fd7df24a1f5a14f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-28-generic

Release files / trado-0.4.2-py3-none-any.whl

Download URL trado-0.4.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
feee2e952775808cf9e0ffb996bdf04961588c6b96c5cbb500ba7809da3b98fe
BLAKE2b-256 checksum
How to use checksums
362dd46643d3f13891ad55ed9679b8ec4e0699a92a1d7a06e451f1f20b269949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.0 Linux/5.13.0-28-generic

Security for trado 0.4.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page