Skip to content

ecairns/lamp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LAMP - Docker

This is a simple LAMP docker containers for personal development. Based on https://github.com/laradock/laradock

Use Docker first and learn about it later.

List current running Containers

docker ps

You can also use the following command if you want to see only this project containers:

docker-compose ps

### Close all running Containers ```bash docker-compose stop ```

To stop single container do:

docker-compose stop {container-name}

### Delete all existing Containers ```bash docker-compose down ```
### Enter a Container (run commands in a running Container)

1 - First list the current running containers with docker ps

2 - Enter any container using:

docker-compose exec {container-name} bash

Example: enter MySQL container

docker-compose exec mysql bash

3 - To exit a container, type exit.


### View the Log files The Nginx Log file is stored in the `logs/nginx` directory.

However to view the logs of all the other containers (MySQL, PHP-FPM,...) you can run this:

docker logs {container-name}

### Rebuild docker Re-build your PHP-FPM Container `docker-compose build php-fpm`.
### Change the timezone and other php.ini

EDIT php-fpm/php.ini

Credits

License

MIT License (MIT)

About

LAMP Stack using Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •