forked from wp-net/wordpress-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-auto-config.yml
36 lines (36 loc) · 1.63 KB
/
wp-auto-config.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
version: '3.6'
services:
# Wordpress auto configuration
# depends on wp-cli build
wp-auto-config:
image: wpcli
build: ./wpcli/
container_name: ${COMPOSE_PROJECT_NAME}_wp_autoconfig
entrypoint: sh -c "/wait && make -f /scripts/Makefile"
volumes:
- ${WORDPRESS_DATA_DIR:-./wordpress}:/var/www/html
working_dir: /var/www/html
depends_on:
- wordpress
- mysql
environment:
# Waiting for MySQL and wordpress -------------------
- WAIT_HOSTS=mysql:3306,wordpress:80
- WAIT_BEFORE_HOSTS=${WAIT_BEFORE_HOSTS:-30}
- WAIT_AFTER_HOSTS=${WAIT_AFTER_HOSTS:-15}
- WAIT_HOSTS_TIMEOUT=${WAIT_HOSTS_TIMEOUT:-300}
- WAIT_SLEEP_INTERVAL=${WAIT_SLEEP_INTERVAL:-30}
- WAIT_HOST_CONNECT_TIMEOUT=${WAIT_HOST_CONNECT_TIMEOUT:-30}
# Wordpress configuration -----------------------------
- WORDPRESS_LOCALE=${WORDPRESS_LOCALE:-en_US}
- WORDPRESS_DB_NAME=${COMPOSE_PROJECT_NAME:-wordpress}
- WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST:-mysql}
- WORDPRESS_DB_USER=${DATABASE_USER:-root}
- WORDPRESS_DB_PASSWORD=${DATABASE_PASSWORD:-password}
- WORDPRESS_WEBSITE_TITLE=${WORDPRESS_WEBSITE_TITLE}
- WORDPRESS_WEBSITE_URL=${WORDPRESS_WEBSITE_URL:-"http://localhost"}
- WORDPRESS_WEBSITE_URL_WITHOUT_HTTP=${WORDPRESS_WEBSITE_URL:-localhost}
- WORDPRESS_WEBSITE_POST_URL_STRUCTURE=${WORDPRESS_WEBSITE_POST_URL_STRUCTURE:-"/blog/%postname%/"}
- WORDPRESS_ADMIN_USER=${WORDPRESS_ADMIN_USER:-wordpress}
- WORDPRESS_ADMIN_PASSWORD=${WORDPRESS_ADMIN_PASSWORD:-wordpress}
- WORDPRESS_ADMIN_EMAIL=${WORDPRESS_ADMIN_EMAIL:-"[email protected]"}