init
This commit is contained in:
23
src/main.py
Normal file
23
src/main.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from typing import Any, Generator
|
||||
|
||||
|
||||
from collections.abc import Iterator
|
||||
from Ts import TraefikComposeDict, TraefikNet, TraefikNetName
|
||||
from compose import gen_compose
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
paths: tuple[str, ...] = ("gitea", "opencloud", "jellyfin", "immich")
|
||||
|
||||
def sub() -> Iterator[tuple[str, str]]:
|
||||
for path in paths:
|
||||
yield from gen_compose(path)
|
||||
|
||||
# yield name, TraefikNetName(name=proxy)
|
||||
|
||||
networks: TraefikNet = dict(sub())
|
||||
traefik = ComposeBuild("traefik").build()
|
||||
traefik_compose = TraefikComposeDict(
|
||||
name="traefik",
|
||||
networks=networks,
|
||||
)
|
||||
Reference in New Issue
Block a user