From 67b0c4a5addeececc8d07ff236ed198a3e727003 Mon Sep 17 00:00:00 2001 From: mo8it Date: Tue, 30 Apr 2024 00:11:08 +0200 Subject: [PATCH] Add alonely0.oxitraffic.com --- .../oxitraffic-alonely0-db.container | 15 +++++++++++++++ .../oxitraffic-alonely0.container | 16 ++++++++++++++++ .../oxitraffic-alonely0.network | 1 + volumes/traefik/dynamic.yml | 7 +++++++ 4 files changed, 39 insertions(+) create mode 100644 containers/oxitraffic-alonely0/oxitraffic-alonely0-db.container create mode 100644 containers/oxitraffic-alonely0/oxitraffic-alonely0.container create mode 100644 containers/oxitraffic-alonely0/oxitraffic-alonely0.network diff --git a/containers/oxitraffic-alonely0/oxitraffic-alonely0-db.container b/containers/oxitraffic-alonely0/oxitraffic-alonely0-db.container new file mode 100644 index 0000000..0259f09 --- /dev/null +++ b/containers/oxitraffic-alonely0/oxitraffic-alonely0-db.container @@ -0,0 +1,15 @@ +[Container] +Image=docker.io/library/postgres:16 +AutoUpdate=registry +Network=oxitraffic-alonely0.network +Volume=%h/volumes/oxitraffic-alonely0/db:/var/lib/postgresql/data:Z + +EnvironmentFile=%h/volumes/oxitraffic-alonely0/.postgres.env +Environment=TZ=Europe/Berlin +Environment=PGTZ=Europe/Berlin + +[Service] +Restart=always + +[Install] +WantedBy=default.target diff --git a/containers/oxitraffic-alonely0/oxitraffic-alonely0.container b/containers/oxitraffic-alonely0/oxitraffic-alonely0.container new file mode 100644 index 0000000..26cef09 --- /dev/null +++ b/containers/oxitraffic-alonely0/oxitraffic-alonely0.container @@ -0,0 +1,16 @@ +[Container] +Image=docker.io/mo8it/oxitraffic:latest +AutoUpdate=registry +Network=traefik.network +Network=oxitraffic-alonely0.network +Volume=%h/volumes/oxitraffic-alonely0/config.toml:/volumes/config.toml:Z,ro + +[Unit] +Requires=oxitraffic-alonely0-db.service +After=oxitraffic-alonely0-db.service + +[Service] +Restart=always + +[Install] +WantedBy=default.target diff --git a/containers/oxitraffic-alonely0/oxitraffic-alonely0.network b/containers/oxitraffic-alonely0/oxitraffic-alonely0.network new file mode 100644 index 0000000..264f70a --- /dev/null +++ b/containers/oxitraffic-alonely0/oxitraffic-alonely0.network @@ -0,0 +1 @@ +[Network] diff --git a/volumes/traefik/dynamic.yml b/volumes/traefik/dynamic.yml index d136bf6..99b8ee8 100644 --- a/volumes/traefik/dynamic.yml +++ b/volumes/traefik/dynamic.yml @@ -63,6 +63,9 @@ http: to_oxitraffic: rule: Host(`oxitraffic.mo8it.com`) service: oxitraffic + to_oxitraffic_alonely0: + rule: Host(`alonely0.oxitraffic.com`) + service: oxitraffic_alonely0 to_oxitraffic_corrode_dev: rule: Host(`oxitraffic-corrode-dev.mo8it.com`) service: oxitraffic_corrode_dev @@ -117,6 +120,10 @@ http: loadBalancer: servers: - url: http://systemd-oxitraffic-corrode-dev + oxitraffic_alonely0: + loadBalancer: + servers: + - url: http://systemd-oxitraffic-alonely0 dev_tools: loadBalancer: servers: