{"id":23014983,"url":"https://github.com/sysafarila/dockerized-laravel","last_synced_at":"2026-04-09T23:03:37.000Z","repository":{"id":220386751,"uuid":"751488785","full_name":"SySafarila/dockerized-laravel","owner":"SySafarila","description":"Run your Laravel with NGINX and MariaDB on Docker","archived":false,"fork":false,"pushed_at":"2025-03-07T08:21:38.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T09:26:48.304Z","etag":null,"topics":["docker","docker-compose","laravel","mariadb","nginx"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/sysafarila/php-laravel","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SySafarila.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-01T17:55:57.000Z","updated_at":"2025-03-07T08:21:42.000Z","dependencies_parsed_at":"2024-12-15T11:10:37.792Z","dependency_job_id":"40cba8c3-25fb-4e64-a981-fde9aa671009","html_url":"https://github.com/SySafarila/dockerized-laravel","commit_stats":null,"previous_names":["sysafarila/dockerized-laravel"],"tags_count":7,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SySafarila%2Fdockerized-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SySafarila%2Fdockerized-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SySafarila%2Fdockerized-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SySafarila%2Fdockerized-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SySafarila","download_url":"https://codeload.github.com/SySafarila/dockerized-laravel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246863942,"owners_count":20846342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","laravel","mariadb","nginx"],"created_at":"2024-12-15T11:10:32.378Z","updated_at":"2026-04-09T23:03:36.935Z","avatar_url":"https://github.com/SySafarila.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation and Usage\n\nInstall or clone your Laravel aplication inside this root. example: `dockerized-laravel/your-laravel`\n\nConfigure your database by changing `mariadb` environment inside `compose.yml`\n\nRun this command below to start your Laravel, Nginx, and Mariadb container\n\n```shell\ndocker compose up -d\n```\n\n\\*use `sudo` if you need to run this as root user. Or, check this [docs](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user) to run docker with non-root user\n\nAfter all containers is up/running, login to your `php-fpm` container to install all dependencies by running this command below:\n\n```shell\ndocker compose exec -it php-fpm sh\n```\n\ninside your container, run this command below to install all required dependencies\n\n```shell\ncomposer install\n```\n\nafter all dependencies are installed, run this command below inside your to run your database migration\n\n```shell\nphp artisan migrate:fresh --seed\n```\n\n## Directories and Files permissions\n\nSince UID:GID of `www-data` on Alpine Linux is **82** while on Ubuntu/Debian is **33**, you have to change directories and files owner on your Docker host to **82**, follow command line below to update your permissions.\n\n\\*note: `php-fpm` container on compose file is based on Alpine Linux\n\n```bash\nsudo chown -R 82:$USER storage/ bootstrap/\n```\n\n\\*run this command on your ROOT laravel folder. Source: [stackoverflow.com](https://stackoverflow.com/questions/66507234/docker-volume-mount-and-permissions-www-data-on-host-33-becomes-xfs-33-in-a)\n\n## CronJob or Automation\n\nRun this command below to apply queue for a minute\n\n```sh\ncrontab mycrontab\n```\n\nMake sure all files on `shell-scripts` folder are executable for your user.\n\n## Non-root Docker\n\nRead this [Documentation](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user) to run your docker without `sudo`\n\n## SSL Configuration Reference\n- [How To Host a Website Using Cloudflare and Nginx on Ubuntu 20.04 - DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-host-a-website-using-cloudflare-and-nginx-on-ubuntu-20-04)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysafarila%2Fdockerized-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysafarila%2Fdockerized-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysafarila%2Fdockerized-laravel/lists"}