-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 968 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: "3"
services:
db:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
volumes:
- db:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: wp_zype_plugin_dev
MYSQL_USER: wp_zype_plugin_dev_admin
MYSQL_PASSWORD: password
ports:
- "3306:3306"
expose:
- "3306"
wordpress:
depends_on:
- db
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:80"
restart: always
volumes:
- wordpress/:/var/www/html
- ./:/var/www/html/wp-content/plugins/zype-plugin
environment:
WORDPRESS_ENV: development
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wp_zype_plugin_dev_admin
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: wp_zype_plugin_dev
XDEBUG_CONFIG: client_host=host.docker.internal client_port=9000
volumes:
wordpress:
db: