-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
53 lines (49 loc) · 1.39 KB
/
compose.yaml
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
services:
wordpress:
image: wordpress
user: "${UID:-1000}:${GID:-1000}"
ports:
- "${WP_PORT:-80}:80"
environment:
WORDPRESS_DB_HOST: database
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: username
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DEBUG: true
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_HOME', 'http://' . ($$_SERVER['HTTP_HOST'] ?? 'localhost') );
define( 'WP_SITEURL', 'http://' . ($$_SERVER['HTTP_HOST'] ?? 'localhost') );
volumes:
- .:/var/www/html
wp-cli:
image: wordpress:cli
user: "${UID:-1000}:${GID:-1000}"
environment:
WORDPRESS_DB_HOST: database
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: username
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DEBUG: true
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_HOME', 'http://' . ($$_SERVER['HTTP_HOST'] ?? 'localhost') );
define( 'WP_SITEURL', 'http://' . ($$_SERVER['HTTP_HOST'] ?? 'localhost') );
volumes:
- .:/var/www/html
database:
image: mariadb
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: username
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: root
volumes:
- database:/var/lib/mysql
phpmyadmin:
image: phpmyadmin
ports:
- "${PMA_PORT:-8888}:80"
environment:
PMA_HOST: database
UPLOAD_LIMIT: 1G
volumes:
database: