{"id":24116982,"url":"https://github.com/davijp7/dockerfy","last_synced_at":"2025-06-28T04:32:15.083Z","repository":{"id":271591432,"uuid":"861455095","full_name":"DaviJP7/dockerfy","owner":"DaviJP7","description":"A simplified, improvised and improved laradock project based docker setup","archived":false,"fork":false,"pushed_at":"2025-04-30T18:16:38.000Z","size":237,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T19:30:51.185Z","etag":null,"topics":["devops","docker","elasticsearch","mariadb","mysql","nginx","php","portainer","portainer-ce"],"latest_commit_sha":null,"homepage":"","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/DaviJP7.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,"zenodo":null}},"created_at":"2024-09-22T23:35:05.000Z","updated_at":"2025-04-30T18:16:42.000Z","dependencies_parsed_at":"2025-06-28T04:31:30.625Z","dependency_job_id":null,"html_url":"https://github.com/DaviJP7/dockerfy","commit_stats":null,"previous_names":["davijp7/dockerfy"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/DaviJP7/dockerfy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaviJP7%2Fdockerfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaviJP7%2Fdockerfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaviJP7%2Fdockerfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaviJP7%2Fdockerfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaviJP7","download_url":"https://codeload.github.com/DaviJP7/dockerfy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaviJP7%2Fdockerfy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262375829,"owners_count":23301341,"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":["devops","docker","elasticsearch","mariadb","mysql","nginx","php","portainer","portainer-ce"],"created_at":"2025-01-11T07:22:59.118Z","updated_at":"2025-06-28T04:32:15.036Z","avatar_url":"https://github.com/DaviJP7.png","language":"Dockerfile","readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg \n  src=\"dockerfy.webp\"\n  alt=\"Dockerfy\" \n  width=\"400\"/\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\u003ch2\u003eDOCKERFY\u003c/h2\u003e\u003c/div\u003e\n\u003cbr\u003e\n\n# FIRST STEP\n### Create a .env file with environment variables\n```bash\n  cp .env.example .env\n```\n\n# SECOND STEP\n### Run the command below to create and startup the container(s)\n```bash\n  docker compose up -d\n```\n\n# CONGRATULATIONS 🎉\n\n\u003chr\u003e\n\u003cbr\u003e\n\n# TRICKS \u0026 TIPES 🎩\n### To run a command inside the container, use the command below\n```bash\n  docker compose exec \u003ccontainer_name\u003e \u003ccommand\u003e\n```\n\n### To access the container's shell, use the command below\n```bash\n  docker compose exec \u003ccontainer_name\u003e sh\n```\n\n### To stop the container(s), use the command below\n```bash\n  docker compose down\n```\n\n# Docker Control Script 🐳\n\n## Overview\n\nThis script allows you to manage Docker containers easily. You can start containers with specified options or stop them with a simple command.\n\n## Usage\n\n### Running the Script\n\nYou can run the script with the following commands:\n\n```bash\n./script.sh [on|off] [-c=\u003ccomma-separated values\u003e]\n\n```\n\n### Arguments\n\n  - `on`: Starts the specified Docker containers.\n  - `off`: Stops all running Docker containers.\n  - `-c=\u003ccomma-separated values\u003e`: Specifies which containers to start. If this flag is not provided, default containers will be used.\n  \n\n### Default Containers\n\nIf you run the script with on without the -c flag, the following containers will be started by default:\n\n  - `nginx`\n  - `mysql`\n  - `php-fpm`\n  - `php-worker`\n  - `portainer`\n  - `proxy`\n  - `workspace`\n\n### Example Commands\n\n\u003col\u003e\n  \u003cli\u003e\u003cstrong\u003eStart default containers:\u003c/strong\u003e\u003c/li\u003e\n\n  ```bash\n    ./script.sh on\n  ```\n  \n  \u003cli\u003e\u003cstrong\u003eStart specified containers:\u003c/strong\u003e\u003c/li\u003e\n  \n  ```bash\n    ./script.sh on -c=nginx,php\n  ```\n\n  \u003cli\u003e\u003cstrong\u003eStop all containers:\u003c/strong\u003e\u003c/li\u003e\n\n  ```bash\n    ./script.sh off -c=nginx,php\n  ```\n\u003c/ol\u003e\n\n\n### Requirements\n\n  - Docker\n  - Docker Compose\n\n### Notes\n\n- Ensure that your `docker-compose.yml` file is properly configured to support the containers you want to start.\n  \n- The script uses `eval` to execute the generated Docker command, so please be cautious with the input values.\n    \n- Try using an alias to make it easier to run the script in any directory. 😉\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavijp7%2Fdockerfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavijp7%2Fdockerfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavijp7%2Fdockerfy/lists"}