forked from emcniece/docker-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (38 loc) · 1003 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (38 loc) · 1003 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
43
44
version: '3.1'
services:
nginx:
image: emcniece/nginx-cache-purge-wp:0.0.2
ports:
- 8080:80
links:
- wp-fpm
volumes:
- wproot:/var/www/html
wp-fpm:
tty: true
stdin_open: true
image: emcniece/wordpress:0.0.4
volumes:
- wproot:/var/www/html
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WPFPM_WP_REDIS_HOST: redis
WPFPM_RT_WP_NGINX_HELPER_CACHE_PATH: "/tmp/cache"
#WP_PLUGINS: "nginx-helper redis-cache"
#ENABLE_HYPERDB: "true"
#ENABLE_CRON: "true"
#CRON_CMD: "*/1 * * * * /usr/bin/curl -silent -A 'Mozilla' 'https://google.com' > /dev/null 2>&1"
mysql:
image: mariadb
command: mysqld --innodb-buffer-pool-size=20M
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: wordpress
MYSQL_DATABASE: wordpress
MYSQL_PASSWORD: wordpress
redis:
image: redis:3-alpine
volumes:
wproot: