Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker-compose LAMP dev stack
version: '3.6'
services:
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: e9w86036f78sd9
volumes:
- "./database:/var/lib/mysql"
db_pma:
image: phpmyadmin/phpmyadmin:latest
depends_on:
- db
ports:
- 8082:80
environment:
MYSQL_ROOT_PASSWORD: e9w86036f78sd9
PMA_USER: root
PMA_PASSWORD: e9w86036f78sd9
mail:
image: mailhog/mailhog:latest
ports:
- 8081:8025
www:
depends_on:
- db
- mail
image: php:latest-apache
volumes:
- "./www:/var/www/html"
ports:
- 8080:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.