2023-11-15 19:33:24 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
## vars
|
|
|
|
wp_image='git.garbaye.fr/garbaye/wordpress'
|
2024-05-04 11:49:30 +00:00
|
|
|
wp_version='6.5.2-php8.1-apache'
|
2023-11-15 19:33:24 +00:00
|
|
|
mysql_image='docker.io/library/mariadb'
|
|
|
|
mysql_version='10.11'
|
|
|
|
## default vars : override with ENV var
|
|
|
|
listen_if="${GARBAYE_WPAMAPSTA_ENV_LISTENIF:-127.0.0.1}"
|
|
|
|
listen_port="${GARBAYE_WPAMAPSTA_ENV_LISTENPORT:-8092}"
|
|
|
|
## mandatory ENV vars
|
|
|
|
envvars='GARBAYE_WPAMAPSTA_MYSQL_PASSWORD'
|
|
|
|
## internal vars : do not touch
|
|
|
|
project_name=${PWD##*/}
|
|
|
|
pod_name="pod_${project_name}"
|
|
|
|
service_name="pod-${pod_name}.service"
|
|
|
|
upstream_images="${wp_image} docker.io/library/php"
|
|
|
|
dbvolume='podman-wpamapsta_db'
|
|
|
|
wpvolume='podman-wpamapsta_wp'
|