{"id":23449541,"url":"https://github.com/danielmahon/docker-railo","last_synced_at":"2025-06-28T11:32:40.007Z","repository":{"id":18503960,"uuid":"21700283","full_name":"danielmahon/docker-railo","owner":"danielmahon","description":null,"archived":false,"fork":false,"pushed_at":"2014-07-10T20:25:49.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T05:50:59.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielmahon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-10T15:52:19.000Z","updated_at":"2014-07-10T15:55:03.000Z","dependencies_parsed_at":"2022-07-12T22:00:30.264Z","dependency_job_id":null,"html_url":"https://github.com/danielmahon/docker-railo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielmahon/docker-railo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmahon%2Fdocker-railo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmahon%2Fdocker-railo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmahon%2Fdocker-railo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmahon%2Fdocker-railo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielmahon","download_url":"https://codeload.github.com/danielmahon/docker-railo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmahon%2Fdocker-railo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262421824,"owners_count":23308520,"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":[],"created_at":"2024-12-23T23:19:39.328Z","updated_at":"2025-06-28T11:32:39.993Z","avatar_url":"https://github.com/danielmahon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"tutum-docker-lamp\n=================\n\nOut-of-the-box LAMP image (PHP+MySQL)\n\n\nUsage\n-----\n\nTo create the image `tutum/lamp`, execute the following command on the tutum-docker-lamp folder:\n\n\tdocker build -t tutum/lamp .\n\nYou can now push your new image to the registry:\n\n\tdocker push tutum/lamp\n\n\nRunning your LAMP docker image\n------------------------------\n\nStart your image binding the external ports 80 and 3306 in all interfaces to your container:\n\n\tdocker run -d -p 80:80 -p 3306:3306 tutum/lamp\n\nTest your deployment:\n\n\tcurl http://localhost/\n\nHello world!\n\n\nLoading your custom PHP application\n-----------------------------------\n\nIn order to replace the \"Hello World\" application that comes bundled with this docker image,\ncreate a new `Dockerfile` in an empty folder with the following contents:\n\n\tFROM tutum/lamp:latest\n\tRUN rm -fr /app \u0026\u0026 git clone https://github.com/username/customapp.git /app\n\tEXPOSE 80 3306\n\tCMD [\"/run.sh\"]\n\nreplacing `https://github.com/username/customapp.git` with your application's GIT repository.\nAfter that, build the new `Dockerfile`:\n\n\tdocker build -t username/my-lamp-app .\n\nAnd test it:\n\n\tdocker run -d -p 80:80 -p 3306:3306 username/my-lamp-app\n\nTest your deployment:\n\n\tcurl http://localhost/\n\nThat's it!\n\n\nConnecting to the bundled MySQL server from within the container\n----------------------------------------------------------------\n\nThe bundled MySQL server has a `root` user with no password for local connections.\nSimply connect from your PHP code with this user:\n\n\t\u003c?php\n\t$mysql = new mysqli(\"localhost\", \"root\");\n\techo \"MySQL Server info: \".$mysql-\u003ehost_info;\n\t?\u003e\n\n\nConnecting to the bundled MySQL server from outside the container\n-----------------------------------------------------------------\n\nThe first time that you run your container, a new user `admin` with all privileges \nwill be created in MySQL with a random password. To get the password, check the logs\nof the container by running:\n\n\tdocker logs $CONTAINER_ID\n\nYou will see an output like the following:\n\n\t========================================================================\n\tYou can now connect to this MySQL Server using:\n\n\t    mysql -uadmin -p47nnf4FweaKu -h\u003chost\u003e -P\u003cport\u003e\n\n\tPlease remember to change the above password as soon as possible!\n\tMySQL user 'root' has no password but only allows local connections\n\t========================================================================\n\nIn this case, `47nnf4FweaKu` is the password allocated to the `admin` user.\n\nYou can then connect to MySQL:\n\n\t mysql -uadmin -p47nnf4FweaKu\n\nRemember that the `root` user does not allow connections from outside the container - \nyou should use this `admin` user instead!\n\n\nSetting a specific password for the MySQL server admin account\n--------------------------------------------------------------\n\nIf you want to use a preset password instead of a random generated one, you can\nset the environment variable `MYSQL_PASS` to your specific password when running the container:\n\n\tdocker run -d -p 80:80 -p 3306:3306 -e MYSQL_PASS=\"mypass\" tutum/lamp\n\nYou can now test your new admin password:\n\n\tmysql -uadmin -p\"mypass\"\n\n\nDisabling .htaccess\n--------------------\n\n`.htacess` is enabled by default. To disable `.htacess`, you can remove the following contents from `Dockerfile`\n\n\t# config to enable .htaccess\n    ADD apache_default /etc/apache2/sites-available/000-default.conf\n    RUN a2enmod rewrite\n\n\n**by http://www.tutum.co**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmahon%2Fdocker-railo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmahon%2Fdocker-railo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmahon%2Fdocker-railo/lists"}