-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 1.09 KB
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
services:
db:
image: docker.io/mariadb:lts-ubi
environment:
# https://mariadb.com/docs/server/server-management/automated-mariadb-deployment-and-administration/docker-and-mariadb/mariadb-server-docker-official-image-environment-variables
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
# Uncomment to make DB accessible from host (please to secure it first)
# ports:
# - 3306:3306
restart: unless-stopped
wp:
build: .
entrypoint: /custom-entrypoint.sh
ports:
# update custom-entrypoint.sh `wp core install` command if changing port
- "8080:80"
depends_on:
- db
restart: always
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DEBUG: true
volumes:
- wordpress_data:/var/www/html
- ./custom-entrypoint.sh:/custom-entrypoint.sh
- .:/var/www/html/wp-content/plugins/phel-wp-plugin
volumes:
db_data:
wordpress_data: