25 lines
755 B
Fish
Executable file
25 lines
755 B
Fish
Executable file
#!/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; or return 1
|
|
|
|
set -l db_container_name oxitraffic-db
|
|
set -l db_env_file $container_volumes_dir/.postgres.env
|
|
|
|
podman-default-create \
|
|
$db_container_name \
|
|
--network traefik \
|
|
-v $container_volumes_dir/db:/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:16; or return 1
|
|
|
|
podman-default-create \
|
|
$container_name \
|
|
--network traefik \
|
|
-v $container_volumes_dir/data:/volumes/data:Z \
|
|
localhost/$container_name:latest
|