{"id":13562819,"url":"https://github.com/dockette/devstack","last_synced_at":"2025-05-04T02:34:26.402Z","repository":{"id":70424501,"uuid":"59422017","full_name":"dockette/devstack","owner":"dockette","description":":whale: Dockette dockerized web devstack (@f3l1x)","archived":false,"fork":false,"pushed_at":"2021-08-09T13:08:37.000Z","size":109,"stargazers_count":45,"open_issues_count":2,"forks_count":13,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-04T15:51:22.689Z","etag":null,"topics":["apache","composer","devstack","docker","dockette","nodejs","php"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dockette.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-05-22T16:19:53.000Z","updated_at":"2024-09-02T12:36:14.000Z","dependencies_parsed_at":"2023-03-05T11:45:38.117Z","dependency_job_id":null,"html_url":"https://github.com/dockette/devstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockette%2Fdevstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockette%2Fdevstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockette%2Fdevstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockette%2Fdevstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dockette","download_url":"https://codeload.github.com/dockette/devstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224381046,"owners_count":17301736,"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":["apache","composer","devstack","docker","dockette","nodejs","php"],"created_at":"2024-08-01T13:01:12.544Z","updated_at":"2024-11-13T03:21:29.026Z","avatar_url":"https://github.com/dockette.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# DevStack\n\nGreat LAMP devstack based on **Docker** \u0026 **Docker Compose** for your home programming.\n\n[![Docker Stars](https://img.shields.io/docker/stars/dockette/devstack.svg?style=flat)](https://hub.docker.com/r/dockette/devstack/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/dockette/devstack.svg?style=flat)](https://hub.docker.com/r/dockette/devstack/)\n\n## Discussion / Help\n\n[![Join the chat](https://img.shields.io/gitter/room/dockette/dockette.svg?style=flat-square)](https://gitter.im/dockette/dockette?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n## LAMP\n\n- Apache 2.4.x\n- PHP 7.2.x + Composer + PHPMailer\n- PHP 5.6.x + Composer + PHPMailer\n- NodeJS 8.x + NPM 5.x\n- MariaDB 10.1\n- PostgreSQL 9.6\n- Adminer 4.3.x\n\n## Install\n\n1. Download devstack binary script.\n\n    ```\n    wget https://raw.githubusercontent.com/dockette/devstack/master/devstack\n    wget https://raw.githubusercontent.com/dockette/devstack/master/docker-compose.yml\n    ```\n\n2. Setup devstack variables in your `.profile` or `.bashrc`.\n\t\n    \u003e These values are default!\n\n\t- `DEVSTACK_DOCKER=~/.devstack/docker-compose.yml` (docker compose file)\n\t- `DEVSTACK_PREFIX=devstack` (container's prefix)\n\t- `DEVSTACK_USER=dfx` (attached user in container) [you can leave it]\n\n3. Make `devstack` managing script executable.\n\n    ```sh\n    chmod +x devstack\n    ```\n\n4. Create symlink to `/usr/local/bin/devstack` or to other bin path.\n\n    ```sh\n    ln -s ~/devstack /usr/local/bin/devstack\n    ```\n\n## Configuration\n\n### Ports\n\n| Container     | Ports    | IP           |\n|---------------|----------|--------------|\n| Apache        | 80 / 443 | 172.10.10.5  |\n| PHP 7.2 + FPM |          | 172.10.10.10 |\n| PHP 5.6 + FPM |          | 172.10.10.11 |\n| NodeJS        |          | 172.10.10.12 |\n| Adminer       | 8000     | 172.10.10.13 |\n| MariaDB       | 3306     | 172.10.10.20 |\n| PostgreSQL    | 5432     | 172.10.10.21 |\n\n### Docker Compose (`docker-compose.yml`)\n\nI have prepared docker configuration file for you. You can [download it here](https://github.com/dockette/devstack/blob/master/docker-compose.yml).\n\n```\nwget https://raw.githubusercontent.com/dockette/devstack/master/docker-compose.yml\n```\n\nIf you didn't change the `DEVSTACK_DOCKER` variable, you should place your `docker-compose.yml` file to your user's folder `~/.devstack/docker-compose.yml`.\n\nAfter you've followed install section, your devstack should be well prepared. One thing left, you should configure your devstack (passwords, folders, etc). \n\nYou should: \n - setup your [**data homeland**](https://github.com/dockette/devstack/blob/master/docker-compose.yml#L132-L134)\n - setup MySQL [**root password**](https://github.com/dockette/devstack/blob/master/docker-compose.yml#L108-L110)\n - setup PostgreSQL [**root password**](https://github.com/dockette/devstack/blob/master/docker-compose.yml#L125-L127)\n\n### Userdirs\n\nThere are two kind of users inside these containers, **root** (main unix user) and **dfx** (special user with uid 1000 in all `dockette` based images).\n\nYou can find it in docker-compose.yml [file in section/container](https://github.com/dockette/devstack/blob/master/docker-compose.yml#L139-L147).\n\nOn the containers startup, your `users dir` are attached to `php72`, `php56`, `nodejs` containers. You can create your own `.bash_profile`, `.bashrc` files \nfor easier manipulation inside docker containers.\n\n[**TIP**] There used to be a skeleton in ubuntu/debian/mint system. \n\n```sh\ncp /etc/skel/.bashrc \u003cpath-to-dfx-userdir\u003e/.bashrc\n```\n\n### PHP\n\nPHP container provides a few environment variables you can override: \n\n#### `xdebug`\n\n| Key               | Value                          |\n|-------------------|--------------------------------|\n| `PHP_IDE_CONFIG`  | serverName=devstack.webserver  |\n| `XDEBUG_CONFIG`   | idekey=PHPSTORM                |\n\n#### `phpmailer`\n\nPhpmailer stores all mails send via `mail()` function to `/srv/mail` folder by default. You can change it.\n\n| Key               | Value      |\n|-------------------|------------|\n| `PHPMAILER_PATH`  | /srv/mail  |\n\n### MySQL / MariaDB\n\nMariaDB's default root password is `root`. You should change it.\n\nYou have to setup in you application/configs proper `host` which is `mariadb`. \n\nMariaDB container has predefined IP address `172.10.10.20`.\n\n```\n172.10.10.20 mariadb\n```\n\n### PostgreSQL\n\nPostgreSQL's default root password is `root`. You should change it.\n\nYou have to setup in you application/configs proper `host` which is `postgresql`. \n\nPostgreSQL container has predefined IP address `172.10.10.21`. You could update your `/etc/hosts`.\n\n```\n172.10.10.21 postgresql\n```\n\n### Adminer\n\nAdminer is great tool for managing database. Dockette devstack runs `Adminer` on port `8000`.\n\nSee more on documentation at https://github.com/dockette/adminer.\n\n## Hosts\n\nBy default is devstack available on domains:\n\n- localhost (php)\n- local.dev (php)\n- www.local.dev (php)\n- local.dev7 (php7)\n- www.local.dev7 (php7)\n- local.dev56 (php56)\n- www.local.dev56 (php56)\n\nYou should add these lines to your `/etc/hosts` file.\n\n```\n# Devstack [webserver]\n127.0.0.1 local.dev\n127.0.0.1 www.local.dev\n127.0.0.1 local.dev7\n127.0.0.1 www.local.dev7\n127.0.0.1 local.dev56\n127.0.0.1 www.local.dev56\n\n# Devstack [DB]\n172.10.10.20 mariadb\n172.10.10.21 postgresql\n```\n\nGive a try!\n\n```\nping local.dev\nping local.dev56\nping local.dev7\nping mariadb\nping postgresql\n```\n\n-----\n\nThank you for testing, reporting and contributing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockette%2Fdevstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockette%2Fdevstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockette%2Fdevstack/lists"}