-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (53 loc) · 1.58 KB
/
docker-compose.yml
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
54
# Fred Brooker <[email protected]>
services:
wp:
image: wordpress:latest
container_name: ${WORDPRESS_CONTAINER_NAME}
depends_on:
- db
volumes:
- ./www:/var/www/html
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./wp:/usr/local/bin/wp
- ./wp-completion.bash:/root/completion.bash
- ./bashrc:/root/.bashrc
ports:
- ${WORDPRESS_PORT}:80
restart: unless-stopped
environment:
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_NAME=${WORDPRESS_DB_NAME}
- WORDPRESS_DB_PASSWORD=${MYSQL_ROOT_PASSWORD}
- WORDPRESS_DB_PORT=${WORDPRESS_DB_PORT}
- WORDPRESS_DB_USER=${WORDPRESS_DB_USER}
- WP_CLI_ALLOW_ROOT=true
- WORDPRESS_CONFIG_EXTRA=
define('DISABLE_WP_CRON', false);
define('DISALLOW_FILE_EDIT', true);
define('FORCE_SSL_ADMIN', false);
define('XMLRPC_ENABLED', false);
define('WP_MEMORY_LIMIT', '128M');
db:
image: mariadb:latest
container_name: ${WORDPRESS_DB_CONTAINER_NAME}
ports:
- ${WORDPRESS_DB_PORT}:3306
volumes:
- ./db:/var/lib/mysql
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${WORDPRESS_DB_NAME}
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: ${PMA_CONTAINER_NAME}
depends_on:
- db
volumes:
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
ports:
- ${PMA_PORT}:80
restart: unless-stopped
environment:
- PMA_HOST=db
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}