Last active
October 10, 2018 12:38
-
-
Save blue-bird1/8c8221284764819ee2761f0b8f2adc07 to your computer and use it in GitHub Desktop.
docker php mysql #docker
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: '3' | |
services: | |
db: | |
image: mysql:5.7 | |
environment: | |
MYSQL_ROOT_PASSWORD: my_secret_pw_shh | |
MYSQL_DATABASE: test_db | |
MYSQL_USER: devuser | |
MYSQL_PASSWORD: devpass | |
ports: | |
- "9906:3306" | |
web: | |
image: php:7.2.2-apache | |
container_name: php_web | |
depends_on: | |
- db | |
volumes: | |
- ./php/:/var/www/html/ | |
ports: | |
- "8100:80" | |
stdin_open: true | |
tty: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment