Skip to content

Instantly share code, notes, and snippets.

@blue-bird1
Last active October 10, 2018 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blue-bird1/8c8221284764819ee2761f0b8f2adc07 to your computer and use it in GitHub Desktop.
Save blue-bird1/8c8221284764819ee2761f0b8f2adc07 to your computer and use it in GitHub Desktop.
docker php mysql #docker
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