futtern/deploy/install.sh

32 lines
827 B
Bash
Raw Normal View History

2024-06-17 20:41:47 +00:00
#!/usr/bin/env sh
2024-06-22 19:47:23 +00:00
if [ ! -d "var" ]; then
mkdir var
fi
podman pod stop futtern
podman pod rm futtern
2024-06-18 20:12:36 +00:00
podman pod create \
--label "io.containers.autoupdate=registry" \
--name futtern \
-p 8087:8087
podman run -d \
--pod futtern \
2024-06-22 19:47:23 +00:00
--name futtern-php \
--volume $(pwd)/etc/php83/php-fpm.d/www.conf:/etc/php83/php-fpm.d/www.conf \
--volume $(pwd)/futtern-app:/var/www/html \
--volume $(pwd)/var:/var/www/html/var \
--env 'APP_ENV=prod' \
2024-06-18 20:12:36 +00:00
git.php.fail/lubiana/container/php:8.3-fpm
podman run -d \
--pod futtern \
2024-06-22 19:47:23 +00:00
--name futtern-caddy \
--volume $(pwd)/etc/caddy/Caddyfile:/etc/caddy/Caddyfile \
--volume $(pwd)/futtern-app:/var/www/html \
--volume caddy_data:/data \
2024-06-18 20:12:36 +00:00
docker.io/caddy/caddy:alpine
2024-06-22 19:47:23 +00:00
echo 'yes' | podman exec -it futtern-php /var/www/html/bin/console doctrine:migrations:migrate