-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (46 loc) · 1.38 KB
/
docker-compose.yaml
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
version: '3.7'
services:
w.db:
platform: linux/x86_64
build:
context: db
dockerfile: mysql.Dockerfile
command: mysqld --default-authentication-plugin=mysql_native_password --long_query_time=0.1 --slow_query_log=1 --log-short-format --slow_query_log_file=/var/log/mysql/slow_query.log --general_log=on --general_log_file=/var/log/mysql/query.log
ports:
- "3310:3306"
w.test:
depends_on:
- w.db
build:
context: app
dockerfile: server.Dockerfile
target: main_server
ports:
- "80:80"
- "443:443"
- "1080:1080"
command: >
bash -c "sh /usr/src/server-start.sh"
volumes:
- "./WordPress:/usr/src/public_html/wordpress"
- "./plugins:/usr/src/public_html/wp-content/plugins"
- "./themes:/usr/src/public_html/wp-content/themes"
d.w.test:
depends_on:
- w.test
build:
context: app
dockerfile: server.Dockerfile
target: debug_server
ports:
- "1081:1080"
command: >
bash -c "sh /usr/src/server-start.sh"
volumes:
- "./WordPress:/usr/src/public_html/wordpress"
- "./plugins:/usr/src/public_html/wp-content/plugins"
- "./themes:/usr/src/public_html/wp-content/themes"
- "./profiling_data:/usr/src/profiling_data"
environment:
- XDEBUG_CONFIG=client_host=192.168.5.2
- PHP_IDE_CONFIG=serverName=Woo-Test