Skip to content

Simple docker-compose for local and staging environments

License

Notifications You must be signed in to change notification settings

giuseppemorelli/docker-devbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker DEV Box

GitHub tag (latest SemVer) GitHub

Simple docker-compose.yml file with pre-configured services.
Can create multiple environment, start with local

Inspired by Devilbox


How to Use the Docker DEV Box

1. Prerequisites

2. Clone the Repository

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:

    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:

    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:
    cd local
    docker-compose up -d

5. Stopping and Cleaning Up

  • To stop the services:
    cd local
    docker-compose down -v

How-to

About

Simple docker-compose for local and staging environments

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages