-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 838 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 838 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
version: "3.9"
services:
web:
build:
dockerfile: Dockerfile
context: ./
depends_on:
db:
condition: service_healthy
environment:
- WORDPRESS_URL
- WORDPRESS_ADMIN_USER
- WORDPRESS_ADMIN_PASSWORD=wordpress #If you want to use the random generated password, just remove this line
- WORDPRESS_ADMIN_EMAIL
- WORDPRESS_DB_USER
- WORDPRESS_DB_HOST
- WORDPRESS_DB_NAME
- WORDPRESS_DB_PASSWORD
- WORDPRESS_DEBUG=true
ports:
- "80:80"
volumes:
- ./wp-content:/var/www/wp-content
db:
image: mariadb
environment:
- MARIADB_ROOT_PASSWORD=wordpress
- MARIADB_DATABASE=wordpress
healthcheck:
test: ["CMD", "mysqladmin", "-u", "root", "-p$$MARIADB_ROOT_PASSWORD", "ping"]
timeout: 3s
retries: 10