forked from jaredpalmer/presspack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (39 loc) · 973 Bytes
/
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
version: "2"
services:
mariadb:
image: wodby/mariadb:10.1-2.3.5
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
ports:
- '3306:3306'
volumes:
- ./db:/var/lib/mysql
php:
image: wodby/wordpress:4-7.1-3.0.0
environment:
ENV: development
DB_NAME: wordpress
DB_USER: wordpress
DB_PASSWORD: wordpress
DB_HOST: mariadb
WP_HOME: localhost:8080
WP_SITEURL: localhost:8080
volumes:
- .:/var/www/html:cached
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
nginx:
image: wodby/wordpress-nginx:4-1.13-3.0.1
environment:
NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html
volumes:
- .:/var/www/html:cached
depends_on:
- php
ports:
- '8080:80'