Add OxiTraffic
This commit is contained in:
parent
d1ace0e5e1
commit
45de0a56eb
2 changed files with 33 additions and 0 deletions
26
containers/oxitraffic.fish
Executable file
26
containers/oxitraffic.fish
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
set -l container_name oxitraffic
|
||||||
|
set -l container_volumes_dir ~/volumes/$container_name
|
||||||
|
|
||||||
|
buildah build -t $container_name:latest ~/code/oxitraffic
|
||||||
|
|
||||||
|
set -l db_container_name oxitraffic-db
|
||||||
|
set -l db_container_volumes_dir $container_volumes_dir/db
|
||||||
|
set -l db_env_file $container_volumes_dir/.postgres.env
|
||||||
|
|
||||||
|
podman-default-create \
|
||||||
|
$db_container_name \
|
||||||
|
--network traefik \
|
||||||
|
-v $db_container_volumes_dir:/var/lib/postgresql/data:Z \
|
||||||
|
-e TZ=Europe/Berlin \
|
||||||
|
-e PGTZ=Europe/Berlin \
|
||||||
|
--env-file $db_env_file \
|
||||||
|
--label "io.containers.autoupdate=registry" \
|
||||||
|
docker.io/library/postgres:15-alpine
|
||||||
|
|
||||||
|
podman-default-create \
|
||||||
|
$container_name \
|
||||||
|
--network traefik \
|
||||||
|
-v $container_volumes_dir/data:/volumes/data:Z \
|
||||||
|
localhost/$container_name:latest
|
|
@ -120,6 +120,9 @@ http:
|
||||||
middlewares:
|
middlewares:
|
||||||
- remove_www_mo8it_com
|
- remove_www_mo8it_com
|
||||||
service: mo8it_com
|
service: mo8it_com
|
||||||
|
to_oxitraffic:
|
||||||
|
rule: Host(`oxitraffic.mo8it.com`)
|
||||||
|
service: oxitraffic
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
|
@ -186,3 +189,7 @@ http:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: http://yinghong-massage-de
|
- url: http://yinghong-massage-de
|
||||||
|
oxitraffic:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: http://oxitraffic
|
||||||
|
|
Loading…
Add table
Reference in a new issue