2020-05-12 01:58:45 +00:00
|
|
|
version: '3.3'
|
2020-04-02 13:41:06 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
|
|
|
container_name: "${APP_NAME}_db"
|
2020-07-23 17:30:24 +00:00
|
|
|
image: mariadb:${DC_MARIADB_VERSION}
|
2020-04-02 13:41:06 +00:00
|
|
|
restart: on-failure
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: testdb
|
|
|
|
MYSQL_USER: wordpress
|
|
|
|
MYSQL_PASSWORD: wordpress
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
|
|
|
|
2020-07-23 17:30:24 +00:00
|
|
|
php:
|
|
|
|
container_name: "${APP_NAME}_php"
|
|
|
|
image: php:${DC_PHP_VERSION}
|
|
|
|
|
2020-04-02 13:41:06 +00:00
|
|
|
wordpress-www:
|
|
|
|
container_name: "${APP_NAME}_wordpress-www"
|
|
|
|
depends_on:
|
|
|
|
- db
|
2020-07-23 17:30:24 +00:00
|
|
|
image: wordpress:${WORDPRESS_VERSION}
|
2020-04-02 13:41:06 +00:00
|
|
|
ports:
|
|
|
|
- ${WORDPRESS_PORT}:80
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
2020-04-07 22:33:30 +00:00
|
|
|
WORDPRESS_DB_HOST: ${WORDPRESS_DB_HOST}
|
|
|
|
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME}
|
|
|
|
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER}
|
|
|
|
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
|
|
|
|
WORDPRESS_TABLE_PREFIX: "${WORDPRESS_TABLE_PREFIX}"
|
2020-04-02 13:41:06 +00:00
|
|
|
WORDPRESS_DEBUG: 1
|
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html
|
|
|
|
|
|
|
|
wordpress-cli:
|
|
|
|
container_name: "${APP_NAME}_wordpress-cli"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- wordpress-www
|
|
|
|
build:
|
|
|
|
context: ./docker/wp-cli
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
2020-04-07 22:33:30 +00:00
|
|
|
WORDPRESS_PORT: ${WORDPRESS_PORT}
|
2020-04-02 13:41:06 +00:00
|
|
|
WORDPRESS_HOST: wordpress-www:80
|
2020-04-07 22:33:30 +00:00
|
|
|
WORDPRESS_TITLE: ${WORDPRESS_TITLE}
|
|
|
|
WORDPRESS_LOGIN: ${WORDPRESS_LOGIN}
|
|
|
|
WORDPRESS_PASSWORD: ${WORDPRESS_PASSWORD}
|
|
|
|
WORDPRESS_EMAIL: "${WORDPRESS_EMAIL}"
|
2020-04-02 13:41:06 +00:00
|
|
|
DOMAIN_NAME:
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|
|
|
|
wordpress:
|