https://github.com/moztopia/devlite
Quick and easy ms-devcontainer with ubuntu, php, node, mariadb, and redis
https://github.com/moztopia/devlite
devcontainer devcontainer-template docker mariadb mysql node php8 quickstart redis
Last synced: 6 months ago
JSON representation
Quick and easy ms-devcontainer with ubuntu, php, node, mariadb, and redis
- Host: GitHub
- URL: https://github.com/moztopia/devlite
- Owner: moztopia
- Created: 2025-05-10T12:34:55.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-06-20T07:13:45.000Z (8 months ago)
- Last Synced: 2025-08-04T05:16:06.673Z (6 months ago)
- Topics: devcontainer, devcontainer-template, docker, mariadb, mysql, node, php8, quickstart, redis
- Language: Shell
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Devlite
Want to support this project? [Buy Me a Beer!](https://coff.ee/mozrin)
**Devlite** is a simple, ready-to-go development environment. Just set **a couple of** variables, open VS Code (`code .`), and start coding—**no crazy-complicated setup is required**.
## Features
- **Minimal Configuration:** Only _a couple of_ required settings.
- **Ubuntu-based DevContainer:** Optimized for development.
- **Preconfigured Stack:** PHP, Node.js, MariaDB, Redis.
- **VS Code Integration:** Open the project folder using **code .** and let DevContainers handle the rest.
## Quick Setup
If you have run the container installer and received the error and are now here, do yourself a favor and delete the volumes, images, and containers that were created the initial process. It can, at times, cause complicated lingering issues with future build efforts. You were warned ;-)
1. Open a terminal and go to the folder where you cloned _devlite_. **cd /you-project-folder**
2. Load Visual Studio Code by typing: `code .`

3. When _vscode_ loads, it will see the devcontainer configuration and ask you if you want to open it. Just close this dialog for now.

4. Open the **.env.template** file and change the WORKSPACE_FOLDER name to match the name of your project folder into which you you cloned devlite.

5. Open the **.devcontainer/devcontainer.json** file and update its value to match the **WORKSPACE_FOLDER** variable set in Step 4.

6. Close _vscode_ and then open it again using by typing: `code .`

7. When prompted to Reopen in Container, do it.

At this point, there is an assumption that you know what to do with a running devcontainer. If you need further assistance, there is a plethora of documentation online about devcontainers. There is also a [Devlite Wiki](https://github.com/moztopia/devlite/wiki) where I will slowly add some more documentation and requested topics.
## Tech Stack
- **OS:** Ubuntu (containerized)
- **Languages:** PHP, Node.js
- **Databases:** MariaDB, Redis
- **IDE Support:** XDebug, VS Code (via DevContainer)
## Build and Load Expectations
The initial build process **can take a significant amount of time** if there are no cached images or common layers available. The build time depends on your hardware:
- **First-time build (no cache):** ~250 seconds
- **Rebuilding after deleting containers:** ~60 seconds
- **Starting containers of an existing environment:** ~6 seconds
Once the initial build is complete, subsequent starts are much faster, ensuring a **lightweight and efficient development workflow**.
## License
Licensed under the **MIT License**.