Skip to content

Instantly share code, notes, and snippets.

@paoloumali
Last active January 18, 2026 14:13
Show Gist options
  • Select an option

  • Save paoloumali/2877de3c2c140eacf62d426d5de9e67a to your computer and use it in GitHub Desktop.

Select an option

Save paoloumali/2877de3c2c140eacf62d426d5de9e67a to your computer and use it in GitHub Desktop.
fedora 43 + podman + laravel sail
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment