Add oxitraffic for corrode.dev

This commit is contained in:
Mo 2023-08-13 02:01:13 +02:00
parent d240bb5c2e
commit 5f12b3aea8
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#!/usr/bin/env fish
set -l container_name oxitraffic-corrode-dev
set -l container_volumes_dir ~/volumes/$container_name
buildah build -t $container_name:latest ~/code/oxitraffic
set -l db_container_name oxitraffic-corrode-dev-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

View file

@ -123,6 +123,9 @@ http:
to_oxitraffic:
rule: Host(`oxitraffic.mo8it.com`)
service: oxitraffic
to_oxitraffic_corrode_dev:
rule: Host(`oxitraffic-corrode-dev.mo8it.com`)
service: oxitraffic_corrode_dev
services:
nginx:
@ -193,3 +196,7 @@ http:
loadBalancer:
servers:
- url: http://oxitraffic
oxitraffic_corrode_dev:
loadBalancer:
servers:
- url: http://oxitraffic-corrode-dev