Add oxitraffic for corrode.dev
This commit is contained in:
parent
d240bb5c2e
commit
5f12b3aea8
2 changed files with 33 additions and 0 deletions
26
containers/oxitraffic_corrode_dev.fish
Executable file
26
containers/oxitraffic_corrode_dev.fish
Executable 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
|
|
@ -123,6 +123,9 @@ http:
|
||||||
to_oxitraffic:
|
to_oxitraffic:
|
||||||
rule: Host(`oxitraffic.mo8it.com`)
|
rule: Host(`oxitraffic.mo8it.com`)
|
||||||
service: oxitraffic
|
service: oxitraffic
|
||||||
|
to_oxitraffic_corrode_dev:
|
||||||
|
rule: Host(`oxitraffic-corrode-dev.mo8it.com`)
|
||||||
|
service: oxitraffic_corrode_dev
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
|
@ -193,3 +196,7 @@ http:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: http://oxitraffic
|
- url: http://oxitraffic
|
||||||
|
oxitraffic_corrode_dev:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: http://oxitraffic-corrode-dev
|
||||||
|
|
Loading…
Add table
Reference in a new issue