Skip to content

solikhachan2/docker-laravel-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set up

  1. Pull the Laravel project into the src folder:
  2. Update the 'mysql.env' file to match the configuration in the Laravel project's '.env' file.
  3. Ensure that the PHP Docker version specified in 'php.root.dockerfile' matches the PHP version specified in the Laravel project's 'composer.json'
  4. If the Laravel root project is located in the 'public' folder, modify the root directory in the 'default.conf' file from '/var/www/html/' to '/var/www/html/public/'."

Building and Running Docker Containers

Build Docker Images

Build the Docker images by running the following command:

docker-compose build

Start Docker Containers

Start the Docker containers using the following command:

docker-compose up -d

The -d flag runs the containers in the background.

Note: When running docker-compose, it will automatically execute composer install within the src folder.

Accessing Services

Stopping Docker Containers

To stop the Docker containers, run:

docker-compose down

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published