-
-
Save version-control/768cf23e360a63605f35c33e7c042f76 to your computer and use it in GitHub Desktop.
Docker-compose LAMP dev stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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