Skip to content

Instantly share code, notes, and snippets.

@chasen-bettinger
Last active August 23, 2019 21:39
Show Gist options
  • Save chasen-bettinger/fcc454db355d7e52f435b4fe4e3072b7 to your computer and use it in GitHub Desktop.
Save chasen-bettinger/fcc454db355d7e52f435b4fe4e3072b7 to your computer and use it in GitHub Desktop.
version: '3'
services:
db:
image: mysql:5.7
ports:
- "8081:3306"
volumes:
- ./sql:/docker-entrypoint-initdb.d
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
wordpress:
depends_on:
- db
image: cmbibby/wordpress-xdebug
ports:
- "8000:80"
restart: always
links:
- db:mysql
volumes:
- ./:/var/www/html
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: password
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
- PMA_ARBITRARY=1
restart: always
ports:
- 8181:80
volumes:
- /sessions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment