25 lines
810 B
Fish
Executable file
25 lines
810 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
set -l container_name oxitraffic
|
|
set -l container_volumes_dir ~/volumes/$container_name
|
|
|
|
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/config.toml:/volumes/config.toml:Z,ro \
|
|
-v $container_volumes_dir/logs:/var/log/oxitraffic:Z \
|
|
--label "io.containers.autoupdate=registry" \
|
|
docker.io/mo8it/oxitraffic:latest
|