Skip to content

Ikhtiarmahmud/docker-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Environment

Docker Enviourment for run mutliple enviourment instance in same machine

Installation

Run commands after clone project for each service (such as commonService, php8apps, php7apps etc)

To build and run docker image

docker-compose up --build

*If already builed then just up the service

docker-compose up -d (run in background)

How to run a project

syntax: docker-compose run -rm -pDockerport:ExternalPort service-name bash
example: docker-compose run --rm -p8700:8000 php8apps bash 

*then go to the directory what you want to run

cd example

*then run the project

php artisan serve --host=0.0.0.0 (for laravel project)

*then hit on browser with docker port (we run the project on 8700 port of host machine)

http://0.0.0.0:8700

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published