{"id":14974569,"url":"https://github.com/jva91/docker-laravel-mix","last_synced_at":"2025-07-11T20:32:19.057Z","repository":{"id":37841441,"uuid":"202667860","full_name":"jva91/docker-laravel-mix","owner":"jva91","description":"Laravel mix container for docker","archived":false,"fork":false,"pushed_at":"2019-08-16T07:10:25.000Z","size":34,"stargazers_count":14,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T07:51:30.389Z","etag":null,"topics":["docker","laravel","laravel55","nodejs","nodejs-docker"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/jva91.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}},"created_at":"2019-08-16T06:01:43.000Z","updated_at":"2024-01-26T18:11:44.000Z","dependencies_parsed_at":"2022-08-19T08:50:09.201Z","dependency_job_id":null,"html_url":"https://github.com/jva91/docker-laravel-mix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jva91/docker-laravel-mix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jva91%2Fdocker-laravel-mix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jva91%2Fdocker-laravel-mix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jva91%2Fdocker-laravel-mix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jva91%2Fdocker-laravel-mix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jva91","download_url":"https://codeload.github.com/jva91/docker-laravel-mix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jva91%2Fdocker-laravel-mix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264892560,"owners_count":23679319,"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","laravel","laravel55","nodejs","nodejs-docker"],"created_at":"2024-09-24T13:50:45.269Z","updated_at":"2025-07-11T20:32:19.016Z","avatar_url":"https://github.com/jva91.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-laravel-mix\nThis setup contains a docker installation tested for Laravel 5.5 + Laravel mix.\n\n## Containers\n\n- app container\n- mysql container\n- phpmyadmin container\n- node container\n\n\nNode container is running in the background to poll the css and js files.\n\n## Usage\n\nTo start this setup use `docker-compose up -d`, this starts all the containers. For Linux and Mac be sure the files in docker/init-scripts have rights to execute. \nThese rights need to be set on the host (so not on the docker server), and can be done by executing `chmod -R 0777 docker/init-scripts` in the root of your project\n\nThe app and node container contains a entrypoint, this calls an bash script to startup the container. \nThis will allow us to override the standard execution of the docker image and adding composer and laravel mix actions.\n\napache_start.sh\n\n\t#!/bin/sh\n\tset -e\n\n\techo 'running prestart apache script'\n\t\n\techo 'running composer install'\n\tcomposer install\n\t\n\tphp artisan migrate\n\t\n\techo 'initialization done, starting apache'\n\texec apache2-foreground\n\nOn startup `composer install`, `php artisan migrate` and `apache2-foreground`(starts apache service) are executed when calling `docker-compose up`.\n\nnode_start.sh\n\n\t#!/bin/sh\n\n\tset -e\n\t\n\techo 'running prestart node script'\n\techo 'running npm install'\n\tnpm install\n\t\n\techo 'initialization done, start watching'\n\tnpm run watch-poll\n\nWhen the node image is started `npm install` is executed, after that `npm run watch-poll` is called to continuously run Laravel Mix in the background of the node image.\nWe are using `npm run watch-poll` because of problems with `npm run watch` not detecting file changes, but you are free to change this offcourse.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjva91%2Fdocker-laravel-mix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjva91%2Fdocker-laravel-mix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjva91%2Fdocker-laravel-mix/lists"}