- Fedora comes with podman by default
sudo dnf install vim-default-editor --allowerasing, relaunch terminal after
- docker and compose is default aliased
- enable podman socket file:
systemctl --user enable --now podman.socket
- add in bashrc:
export DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock
source ~/.bashrc
docker run --rm \
--pull=always \
-v "$(pwd)":/opt:Z \
-w /opt \
laravelsail/php84-composer:latest \
bash -c "laravel new example-app --no-interaction && cd example-app && php ./artisan sail:install --with=mysql,redis,meilisearch,mailpit,selenium "
cd example-app
chmod -R 777 storage bootstrap/cache
- in the laravel.test service in compose file, satisfy Fedora's SELinux requirement
volumes:
- '.:/var/www/html:Z'
- run:
./vendor/bin/sail up -d
- migrate the DB:
./vendor/bin/sail artisan migrate
podman ps