-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
72 lines (65 loc) · 2.4 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.6'
services:
wordpress:
build:
context: .
args:
- WORDPRESS_THEME_NAME
volumes:
- ./:/var/www/html/wp-content/themes/${WORDPRESS_THEME_NAME}:cached
- ./plugins:/var/www/html/wp-content/plugins:cached
- ./uploads:/var/www/html/wp-content/uploads:cached
- ./docker/conf:/var/www/html/conf
- ./logs:/var/www/html/logs
- ./docker/scripts:/var/www/html/scripts
depends_on:
db:
condition: service_healthy
ports:
- '8888:80'
environment:
# WordPress install configuration
WORDPRESS_TITLE: 'Skela'
WORDPRESS_URL: http://localhost:8888
WORDPRESS_ADMIN_USER: admin
WORDPRESS_ADMIN_EMAIL: [email protected]
WORDPRESS_ADMIN_PASSWORD: password
# WordPress database configuration
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
# Defined in `.env`, which is automatically loaded by `docker-compose`
# See https://docs.docker.com/compose/environment-variables/#the-env-file
WORDPRESS_THEME_NAME: ${WORDPRESS_THEME_NAME}
WP_ENV: ${WP_ENV}
# Configure WordPress for multisite
# WORDPRESS_MULTISITE: 1
# Configure for subdomain routing
# Leave this commented out for subdirectory routing
# WORDPRESS_MULTISITE_SUBDOMAIN_INSTALL: 1
# Runtime configuration for richarvey/nginx-php-fpm
# See https://github.com/richarvey/nginx-php-fpm
RUN_SCRIPTS: 1
# Comment out this next line to avoid permissions issues when not mounting the
# theme codebase into the container via `volumes` in `docker-composer.yml`.
# We're skipping it by default as it's not strictly required when using `volumes`
# and it adds significantly to boot time with larger codebases.
SKIP_CHOWN: 1
# Set the time zone
TZ: America/New_York
db:
image: mysql/mysql-server:8.0.27
volumes:
# Export an initial DB seed using `wp db export` and load it automatically on first install
# See https://hub.docker.com/_/mysql
# - ./docker/conf/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
- db_data:/var/lib/mysql
environment:
# See https://hub.docker.com/_/mysql/
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
volumes:
db_data: