Created
September 6, 2016 06:12
-
-
Save dixonsatit/0f4817eb1e2bfdf8cdea04126fe5643e to your computer and use it in GitHub Desktop.
docker compose php mysql
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: '2' | |
| services: | |
| php: | |
| image: php:7-apache | |
| container_name: lemp_php7_apache | |
| restart: always | |
| volumes: | |
| - ./html/:/var/www/html | |
| ports: | |
| - 80:80 | |
| db: | |
| image: mariadb:latest | |
| container_name: lemp_mariadb | |
| restart: always | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=123132123 | |
| - MYSQL_DATABASE=lemp_db | |
| - MYSQL_USER=lemp | |
| - MYSQL_PASSWORD=123456 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment