-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (33 loc) · 858 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (33 loc) · 858 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
version: '3'
services:
wp:
image: wordpress:${WP_VER}
volumes:
- www_html:/var/www/html
- db_exchange:/db_exchange
environment:
WORDPRESS_DB_HOST: "db"
WORDPRESS_DB_NAME: "${DB_NAME}"
WORDPRESS_DB_USER: "root"
WORDPRESS_DB_PASSWORD: "${DB_ROOT_PASSWORD}"
WORDPRESS_DEBUG: "true"
depends_on:
- db
db:
image: mariadb:latest
command: [
'--default_authentication_plugin=mysql_native_password',
'--max_allowed_packet=256M',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_520_ci'
]
volumes:
- db_exchange:/db_exchange
- db_data:/var/lib/mysql
environment:
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
volumes:
db_exchange:
www_html:
db_data: