Skip to content

volodymyr-hordiienko/local-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker local environment setup

Run cp .env.example .env to create a .env file

Add the following to your /etc/hosts file:

# Docker local environment
127.0.0.1       adminer.local
127.0.0.1       mailpit.local
127.0.0.1       minio.local

Run docker-compose up -d to start the containers

You can pass any files you want to run in the containers by adding them to the ./<service-folder>/bridge folder

You can access the following services:

You can also add the following aliases to your .bashrc or .zshrc file:

alias php='docker run --rm --network=local-environment_local-network -v $(pwd):/app -w /app -p 8000:8000 phpswoole/swoole:6.0-php8.4-alpine php'
alias go='docker run --rm --network=local-environment_local-network -v $(pwd):/app -w /app -p 8000:8000 golang:1.23.3 go'

and access php and go by running php <file> and go run <file> respectively. You will be able to access databases in executed code as well.

About

Setup for docker local environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published