Created
July 10, 2017 23:35
-
-
Save codeasashu/6ce6acacf8feb28060f95c332059de85 to your computer and use it in GitHub Desktop.
Nginx php-fpm mysql phpmyadmin
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
| front: | |
| image: dydx/alpine-nginx-phpfpm | |
| ports: | |
| - "80:80" | |
| volumes: | |
| - ./www:/var/www/default/public | |
| - ./sites:/etc/nginx/sites-enabled | |
| links: | |
| - mysql:mysql | |
| phpmyadmin: | |
| image: phpmyadmin/phpmyadmin | |
| restart: always | |
| environment: | |
| - PMA_ARBITRARY=1 | |
| ports: | |
| - 8080:80 | |
| links: | |
| - mysql | |
| mysql: | |
| image: mysql:5 | |
| ports: | |
| - "3306:3306" | |
| command: --sql-mode="" | |
| volumes: | |
| - ./mysql:/etc/mysql/conf.d | |
| - ./dumps:/docker-entrypoint-initdb.d | |
| - ./database:/var/lib/mysql | |
| environment: | |
| MYSQL_ROOT_PASSWORD: rootpass | |
| MYSQL_DATABASE: closethejob_dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment