Created
November 8, 2017 19:50
-
-
Save pmeszaros/b6f39263a9e22d869320eb7d7a4d20e2 to your computer and use it in GitHub Desktop.
docker-compose.yaml for Slim Framework Skeleton with MySQL and phpMyAdmin
This file contains 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: '2' | |
volumes: | |
logs: | |
driver: local | |
services: | |
mysql: | |
image: mysql:5.7 | |
volumes: | |
- ./db:/var/lib/mysql | |
ports: | |
- 2205:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: project | |
MYSQL_USER: root | |
MYSQL_PASSWORD: root | |
php: | |
image: php:7-alpine | |
working_dir: /var/www | |
command: php -S 0.0.0.0:8080 -t public public/index.php | |
environment: | |
docker: "true" | |
ports: | |
- 8000:8080 | |
volumes: | |
- .:/var/www | |
- logs:/var/www/logs | |
links: | |
- mysql | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin | |
ports: | |
- 8181:80 | |
links: | |
- mysql | |
environment: | |
PMA_HOST: mysql | |
PMA_PORT: 3306 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment