DEV Community

Posted on

Docker Compose - Ubuntu LAMP Setup on Windows

This setup is only for local development, so I didn't add any security-related layers to it.

My Directory Structure for this setup was like this.

├─ Dockerfile
├─ docker-compose.yml
├─ 000-default.conf

After setting up (copy the given files below) or download it from here. Then switch to the lamp directory and issue the following command.

docker-compose up
Enter fullscreen mode Exit fullscreen mode

Docker File

File Name: Dockerfile

Docker Compose

File Name: docker-compose.yml

Default Conf

File Name: 000-default.conf
This file is used to enable rewriteurl feature in /var/www/html/

Top comments (0)