https://github.com/fedek6/docker-lamp-stack-vhosts
Docker template for LAMP stack with multiple vhosts
https://github.com/fedek6/docker-lamp-stack-vhosts
docker docker-compose lamp-stack php wordpress
Last synced: about 1 year ago
JSON representation
Docker template for LAMP stack with multiple vhosts
- Host: GitHub
- URL: https://github.com/fedek6/docker-lamp-stack-vhosts
- Owner: fedek6
- Created: 2022-02-08T10:57:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-08T12:27:07.000Z (about 4 years ago)
- Last Synced: 2025-01-06T20:29:05.364Z (about 1 year ago)
- Topics: docker, docker-compose, lamp-stack, php, wordpress
- Language: Dockerfile
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Template for a Docker LAMP stack with multiple vhosts
Clone repo:
```bash
git clone https://github.com/fedek6/docker-lamp-stack-vhosts.git && cd docker-lamp-stack-vhosts
```
Modify config files:
* `docker-compose.yml` to name your container properly.
* `apache/100-custom.php.ini` for PHP settings.
* `apache/Dockerfile` for PHP extensions, server libraries and virtual host configs.
* `apache/example.com.conf` this is an example virtual host.
* `db/init/001-databases.sql` to initialize databases on build.
Run Docker:
```bash
docker-compose up
```
And you have:
* http://example.com:8000/ for the configured virtual host.
* http://example.com:8080/ for the PhpMyAdmin (use `root/toor` pair to log in).
And that's all!