Remove Limesurvey

This commit is contained in:
Mo 2023-12-28 16:52:32 +01:00
parent eb5b023796
commit e0a03fd158

View file

@ -1,36 +0,0 @@
#!/usr/bin/env fish
set -l container_name limesurvey
set -l container_volumes_dir ~/volumes/$container_name
set -l container_limesurvey_dir $container_volumes_dir/limesurvey
mkdir -p $container_limesurvey_dir
set -l db_container_name limesurvey-postgres
set -l db_container_dir $container_volumes_dir/postgres
mkdir -p $db_container_dir
podman-default-create \
$db_container_name \
--network traefik \
-v $db_container_dir:/var/lib/postgresql/data:Z \
-e POSTGRES_DB=limesurvey \
-e POSTGRES_USER=limesurvey \
--env-file $container_volumes_dir/secrets.env \
--label "io.containers.autoupdate=registry" \
docker.io/library/postgres:15
podman-default-create \
$container_name \
--network traefik \
-v $container_limesurvey_dir:/var/www/html/upload/surveys:Z \
-e DB_TYPE=pgsql \
-e DB_HOST=limesurvey-postgres \
-e DB_PORT=5432 \
-e DB_NAME=limesurvey \
-e DB_USERNAME=limesurvey \
-e PUBLIC_URL=https://survey.mo8it.com \
--env-file $container_volumes_dir/secrets.env \
--label "io.containers.autoupdate=registry" \
docker.io/martialblog/limesurvey:5-apache