poddypodman
All checks were successful
/ ls (pull_request) Successful in 29s

This commit is contained in:
lubiana 2024-06-18 22:12:36 +02:00
parent 9f5bb8ce9f
commit ec46bf2884
No known key found for this signature in database
4 changed files with 29 additions and 5 deletions

View file

@ -0,0 +1,6 @@
:8087 {
root * /var/www/html/public
php_fastcgi unix//var/run/php-fpm.sock
file_server
encode zstd gzip
}

View file

@ -0,0 +1,10 @@
[www]
user = nobody
group = nobody
listen = 9001
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3

View file

@ -1,2 +1,26 @@
#!/usr/bin/env sh
podman pod create \
--label "io.containers.autoupdate=registry" \
--name futtern \
-p 8087:8087
podman run -d \
--pod futtern \
--name php \
git.php.fail/lubiana/container/php:8.3-fpm
podman run -d \
--pod futtern \
--name caddy \
--volume
docker.io/caddy/caddy:alpine
podman genereate systemd \
--files \
--name futtern \
--restart-policy=always \
-t 10
mkdir -p ${HOME}/.config/systemd/user

View file

@ -1,10 +1,10 @@
#!/usr/bin/env sh
if [ -d "temp-deploy" ]; then
rm -rf temp-deploy
if [ -d "futter-app" ]; then
rm -rf futtern-app
fi
mkdir temp-deploy
cd temp-deploy || return
mkdir futtern-app
cd futtern-app || return
pathsToCopy="public bin config migrations src templates composer.json composer.lock symfony.lock .env etc"