https://github.com/giuseppemorelli/docker-devbox
Simple docker-compose for local and staging environments
https://github.com/giuseppemorelli/docker-devbox
docker docker-compose
Last synced: 4 months ago
JSON representation
Simple docker-compose for local and staging environments
- Host: GitHub
- URL: https://github.com/giuseppemorelli/docker-devbox
- Owner: giuseppemorelli
- License: mit
- Created: 2018-05-08T10:08:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-07-25T20:23:04.000Z (11 months ago)
- Last Synced: 2025-07-26T03:37:30.598Z (11 months ago)
- Topics: docker, docker-compose
- Language: Shell
- Homepage:
- Size: 81.1 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Docker DEV Box


Simple docker-compose.yml file with pre-configured services.
Can create multiple environment, start with `local`
Inspired by [Devilbox](http://devilbox.org/)
---
## How to Use the Docker DEV Box
### 1. Prerequisites
- Install [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) on your system.
### 2. Clone the Repository
```sh
git clone https://github.com/giuseppemorelli/docker-devbox.git
cd docker-devbox
```
### 3. Configure Your Environment
- Copy the example environment file and adjust as needed:
```sh
cp local/env.dist local/.env
# Edit local/.env to match your requirements
```
- Uncomment the services you want to use in the `docker-compose.yml` file.
For example, to enable MySQL, uncomment the following lines:
```yaml
mysql:
container_name: ${COMPOSE_PROJECT_NAME}_${MYSQL_SERVER_NAME}
image: ${MYSQL_SERVER}
environment:
MYSQL_ROOT_PASSWORD: "docker"
# for mysql 8 comment user and password user, need to create via script only for legacy project
MYSQL_USER: "local"
MYSQL_PASSWORD: "local"
# ....
```
### 4. Start the Services
- From the environment root, run:
```sh
cd local
docker-compose up -d
```
### 5. Stopping and Cleaning Up
- To stop the services:
```sh
cd local
docker-compose down -v
```
### How-to
- [Cloudflare Tunnel](docs/cloudflare-tunnel.md)