-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
42 lines (42 loc) · 932 Bytes
/
compose.yml
File metadata and controls
42 lines (42 loc) · 932 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
38
39
40
41
42
services:
wp:
build:
context: .
args:
DOMAIN: example.coop
CAPWD: ca_password
XDEBUG: ${WORDPRESS_XDEBUG}
hostname: example.coop
extra_hosts:
- host.docker.internal:host-gateway
ports:
- "80:80"
- "443:443"
volumes:
- ./wp:/var/www/html
- ./log:/var/log
links:
- db:mysql
depends_on:
- db
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wpusr
WORDPRESS_DB_PASSWORD: wppwd
WORDPRESS_DB_NAME: wordpress
WORDPRESS_TABLE_PREFIX: wp_
WORDPRESS_DEBUG: 1
WORDPRESS_DEBUG_LOG: /var/log/wp.log
db:
image: mariadb
hostname: mariadb
ports:
- "3306:3306"
volumes:
- ./.db:/var/lib/mysql
- /var/log:/var/log
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: wordpress
MARIADB_USER: wpusr
MARIADB_PASSWORD: wppwd