Skip to content

Instantly share code, notes, and snippets.

@version-control
Forked from soup-bowl/docker-compose.yml
Created January 12, 2021 16:30
Show Gist options
  • Save version-control/768cf23e360a63605f35c33e7c042f76 to your computer and use it in GitHub Desktop.
Save version-control/768cf23e360a63605f35c33e7c042f76 to your computer and use it in GitHub Desktop.
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