-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (57 loc) · 1.43 KB
/
docker-compose.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: ${PROJECT_NAME}
services:
mysql_service:
image: ${MYSQL_IMAGE}
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: wpdb
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
networks:
- default-network
wordpress_service:
depends_on:
- mysql_service
build:
context: .
dockerfile: Dockerfile
args:
WORDPRESS_IMAGE: ${WORDPRESS_IMAGE}
PHP_XDEBUG_BRANCH: ${PHP_XDEBUG_BRANCH}
image: wordpress_dev-image
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- ./config/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./config/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ${WORK_DIR}:/var/www/html
environment:
WORDPRESS_DB_NAME: wpdb
WORDPRESS_DB_HOST: mysql_service:3306
WORDPRESS_DB_USER: ${MYSQL_USER}
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}
APACHE_RUN_USER: www
APACHE_RUN_GROUP: www
ports:
- 80:80
- 443:443
networks:
- default-network
phpmyadmin_service:
depends_on:
- mysql_service
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
environment:
PMA_HOST: mysql_service
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
UPLOAD_LIMIT: 1G
networks:
- default-network
networks:
default-network:
volumes:
mysql_data: