-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 965 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 965 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
version: '3'
services:
wordpress:
build: .
image: wordpress:5.1.1
environment:
- WORDPRESS_DEBUG=true
- WORDPRESS_DB_HOST=mariadb
- WORDPRESS_DB_PORT=3306
- WORDPRESS_DB_NAME=wordpress
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD=wordpress
- WORDPRESS_USERNAME=admin
- WORDPRESS_PASSWORD=changeme
- WORDPRESS_EMAIL=email@change.me
- WORDPRESS_FIRST_NAME=WordPress
- WORDPRESS_LAST_NAME=Administrator
- WORDPRESS_BLOG_NAME=My Docker Blog
- WORDPRESS_SITEURL=http://localhost
- WORDPRESS_HOME=http://localhost
- WORDPRESS_TABLE_PREFIX=wp_
ports:
- "80:80"
depends_on:
- mariadb
mariadb:
image: mariadb:latest
environment:
- MYSQL_USER=wordpress
- MYSQL_PASSWORD=wordpress
- MYSQL_DATABASE=wordpress
- MYSQL_ROOT_PASSWORD=wordpress
- TERM=xterm
volumes:
- ./data:/var/lib/mysql:rw