-
-
Save Alex-Woo/dc8708a475922169a8a60fd7736d80c9 to your computer and use it in GitHub Desktop.
docker-compose with php/mysql/phpmyadmin/apache
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: | |
| www: | |
| build: . | |
| ports: | |
| - "8001:80" | |
| volumes: | |
| - ./www:/var/www/html/ | |
| links: | |
| - db | |
| networks: | |
| - default | |
| db: | |
| image: mysql | |
| ports: | |
| - "3306:3306" | |
| environment: | |
| MYSQL_DATABASE: myDb | |
| MYSQL_USER: user | |
| MYSQL_PASSWORD: test | |
| MYSQL_ROOT_PASSWORD: test | |
| volumes: | |
| - ./dump:/docker-entrypoint-initdb.d | |
| networks: | |
| - default | |
| phpmyadmin: | |
| image: phpmyadmin/phpmyadmin | |
| links: | |
| - db:db | |
| ports: | |
| - 8000:80 | |
| environment: | |
| MYSQL_USER: user | |
| MYSQL_PASSWORD: test | |
| MYSQL_ROOT_PASSWORD: test | |
| volumes: | |
| - /sessions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment