-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
75 lines (60 loc) · 1.66 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
64
65
66
67
68
69
70
71
72
73
74
75
version: "3.8"
services:
wordpress:
restart: always
build:
context: ./config/development
env_file:
- .env
ports:
- ${WORDPRESS_LOCALHOST_PORT}:80
environment:
WORDPRESS_DB_HOST: database
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME}
WORDPRESS_DB_USER: ${WORDPRESS_DB_NAME} # Same as db name.
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_NAME} # Same as db name.
WORDPRESS_SKIP_INSTALL: "yes"
# Set the XDEBUG_CONFIG as described here: https://xdebug.org/docs/all_settings#XDEBUG_CONFIG
XDEBUG_CONFIG: client_host=192.168.1.2 # This is for XDebug 3.
healthcheck:
test:
[
"CMD",
"curl",
"--output",
"/dev/null",
"--silent",
"--fail",
"http://localhost:80",
]
interval: 30s
timeout: 30s
retries: 3
tmpfs:
- /var/www/html
volumes:
# - wordpress:/var/www/html
- ./:/var/www/html/wp-content/plugins/indexed-search
depends_on:
- database
database:
image: mariadb:10.8
restart: always
env_file:
- .env
ports:
- "${WORDPRESS_DB_LOCALHOST_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${WORDPRESS_DB_PASSWORD}
MYSQL_USER: ${WORDPRESS_DB_NAME} # Same as db name.
MYSQL_PASSWORD: ${WORDPRESS_DB_NAME} # Same as db name.
MYSQL_DATABASE: ${WORDPRESS_DB_NAME} # Same as db name.
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 30s
timeout: 30s
retries: 3
tmpfs:
- /var/lib/mysql
volumes:
- ./tests/_data:/docker-entrypoint-initdb.d