{"id":26963936,"url":"https://github.com/victormgomes/slim-containers","last_synced_at":"2026-04-14T19:32:29.614Z","repository":{"id":273989024,"uuid":"915834176","full_name":"VictorMGomes/slim-containers","owner":"VictorMGomes","description":"A lightweight Docker environment for Full Stack applications","archived":false,"fork":false,"pushed_at":"2025-04-01T23:51:23.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T00:28:56.456Z","etag":null,"topics":["certbot","mariadb","minio","nginx","nodejs","php","redis","s3","sql"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/VictorMGomes.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-12T23:09:33.000Z","updated_at":"2025-01-30T06:30:31.000Z","dependencies_parsed_at":"2025-01-24T07:38:29.653Z","dependency_job_id":null,"html_url":"https://github.com/VictorMGomes/slim-containers","commit_stats":null,"previous_names":["victormgomes/slim-containers"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorMGomes%2Fslim-containers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorMGomes%2Fslim-containers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorMGomes%2Fslim-containers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorMGomes%2Fslim-containers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VictorMGomes","download_url":"https://codeload.github.com/VictorMGomes/slim-containers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944386,"owners_count":20858772,"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":["certbot","mariadb","minio","nginx","nodejs","php","redis","s3","sql"],"created_at":"2025-04-03T06:18:51.149Z","updated_at":"2026-04-14T19:32:29.583Z","avatar_url":"https://github.com/VictorMGomes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slim Containers\n\n## A Lightweight Docker Environment for Full Stack Applications\n\n### Purpose\n\nThis is a minimal and ready-to-use Docker setup for developing PHP or Node.js projects.  \nIt is optimized for development environments, but with minimal adjustments, it can also be used for production.\n\n### Services Provided\n\n- **[PHP-FPM](https://github.com/php/php-src)**: PHP FastCGI Process Manager for handling PHP-based applications.\n- **[Node.js](https://github.com/nodejs/node)**: A JavaScript runtime built on Chrome's V8 JavaScript engine.\n- **[MariaDB](https://github.com/MariaDB/server)**: An open-source relational database management system, a fork of MySQL.\n- **[Nginx](https://github.com/nginx/nginx)**: A high-performance web server and reverse proxy.\n- **[Certbot](https://github.com/certbot/certbot)**: For automatic SSL certificate generation and renewal.\n- **[Redis](https://github.com/redis/redis)**: A fast, open-source, in-memory data structure store, used as a database, cache, and message broker.\n- **[MinIO](https://github.com/minio/minio)**: An open-source object storage service, compatible with Amazon S3.\n\n### Instructions\n\n#### Setup\n\n1. **Add the repository as a submodule:**\n\n    ```bash\n    git submodule add https://github.com/VictorMGomes/slim-containers.git\n    ```\n\n2. **Copy the example environment file:**\n\n    ```bash\n    cp slim-containers/.env.example slim-containers/.env\n    ```\n\n3. **Build images:**\n\n    ```bash\n    docker-compose -f slim-containers/docker-compose.yml build --no-cache\n    ```\n\n#### Usage\n\n- To start selected services in detached mode (background):\n\n    ```bash\n    docker-compose -f slim-containers/docker-compose.yml up -d nginx php-fpm mariadb\n    ```\n\n- To stop and remove containers:\n\n    ```bash\n    docker-compose -f slim-containers/docker-compose.yml down\n    ```\n\n### Services Configuration\n\n#### Set up `.env` variables with desired configurations\n\n- **NGINX**  \n  You can configure an Nginx reverse proxy by defining the `NGINX_VIRTUAL_HOSTS_CONFIG` variable.  \n  The format of `NGINX_VIRTUAL_HOSTS_CONFIG` follows this structure:  \n  **`VIRTUAL_HOST_DOMAIN:TEMPLATE_NAME:SERVICE_NAME:PUBLIC_PATH`**,  \n  where:  \n  - `VIRTUAL_HOST_DOMAIN` is the domain name,  \n  - `TEMPLATE_NAME` is the Nginx template,  \n  - `SERVICE_NAME` is the container service name,  \n  - `PUBLIC_PATH` is the application's public directory (if applicable).  \n\n  **Examples:**  \n\n  - If your application is a Laravel application:  \n\n    ```bash\n    NGINX_VIRTUAL_HOSTS_CONFIG=\"app.local:php-fpm:${PHP_FPM_SERVICE_NAME}:/public\"\n    ```\n  \n  - If your application has its root folder as the public folder:  \n\n    ```bash\n    NGINX_VIRTUAL_HOSTS_CONFIG=\"app.local:php-fpm:${PHP_FPM_SERVICE_NAME}:\"\n    ```\n  \n  - If your application is a Node.js application:  \n\n    ```bash\n    NGINX_VIRTUAL_HOSTS_CONFIG=\"app.local:nodejs:${NODE_SERVICE_NAME}:\"\n    ```\n  \n  - If you have multiple sites with different domains, separated by a comma `,`, for both PHP-FPM and Node.js:  \n\n    ```bash\n    NGINX_VIRTUAL_HOSTS_CONFIG=\"app.local:php-fpm:${PHP_FPM_SERVICE_NAME}:/public,app2.local:nodejs:${NODE_SERVICE_NAME}:\"\n    ```\n\n  **Important:** For local domains, you need to configure the hosts file of your operating system.  \n\n  - **Windows hosts file path:**  \n\n    ```bash\n    C:\\Windows\\System32\\drivers\\etc\\hosts\n    ```\n\n  - **Linux hosts file path:**  \n\n    ```bash\n    /etc/hosts\n    ```\n  \n  Add the following lines to your hosts file to map virtual domains:  \n\n  ```bash\n  127.0.0.1 app.local\n  127.0.0.1 app2.local\n  ```\n\n### Contributing\n\nTo contribute to this project, please read the contributing **[guide](CONTRIBUTING.md)**.\n\n### Upcoming Features\n\nCheck the upcomming features in **[TODO](TODO.md)** of this project.\n\n### Changelog\n\nCheck out the release **[changelog](CHANGELOG.md)** for this project.\n\n## 🙏 Funding\n\n***If this project has been useful to you, consider making a donation to help it grow.***\n\n**You can choose a donation method by clicking [here](https://donate.victormgomes.net)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictormgomes%2Fslim-containers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictormgomes%2Fslim-containers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictormgomes%2Fslim-containers/lists"}