Skip to content

leoshtika/docker-lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker LAMP

A lightweight LAMP (Linux, Apache, MySQL/MariaDB, PHP) stack using Docker. The master branch contains the latest supported versions of each component. To use older PHP versions, please check the respective branches.

Usage

1) Prerequisites

Ensure that you have Git installed, then follow the steps below based on your operating system:

2) Set up environment variables

Copy the sample environment file and adjust the user and group IDs if necessary:

cp .env.sample .env

For Unix-like systems (Linux and macOS) run:

id -u # If the output is different from 1000, update the UID in the .env file.
id -g # If the output is different from 1000, update the GID in the .env file.

3) Build and start containers

To build and start the Docker containers, run:

docker compose build
docker compose up -d

4) Access the services

Enjoy!

About

A lightweight LAMP (Linux, Apache, MySQL/MariaDB, PHP) stack using Docker.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors