Skip to content

Instantly share code, notes, and snippets.

View ibnu-ja's full-sized avatar
💙
hhhh

ibnu-ja

💙
hhhh
View GitHub Profile

Creatoing Multi-Container Laravel Inertia.js SSR Image with Podman

This setup is designed for production deployment. For local development, use DevContainers or Laravel Sail.

Images are significantly smaller compared to Laravel Sail, each around 400MB for small to medium applications. Horizontally scalable can be achieved by deploying multiple PHP and SSR containers behind a load balancer. Use Redis for sessions/cache and shared storage (S3, NFS) for multi-instance deployments.

1. Initialize Application

Obviously, we need a Laravel application. If you don't have one, you can install it using Podman:

module.exports = {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'],
parserOptions: {
parser: 'babel-eslint',
},
rules: {