forked from Public/DockerWordpress
Created basic profile files
This commit is contained in:
parent
9ace78b2e9
commit
d6c33313ef
7
basic/.env_default
Normal file
7
basic/.env_default
Normal file
@ -0,0 +1,7 @@
|
||||
$CONTAINER_NAME=TheNameOfYourContainer
|
||||
MYSQL_ROOT_PASSWORD=YourMySQLRootPasswordHere
|
||||
MYSQL_USER=wpuser
|
||||
MYSQL_PASSWORD=The_wpuser_password_here
|
||||
MYSQL_WP_DATABASE=wordpressdb
|
||||
EX_PORT=8000
|
||||
|
||||
8
basic/README.md
Normal file
8
basic/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
INSTRUCTIONS
|
||||
|
||||
1. Copy (and edit) .env_default to .env
|
||||
2. Run docker-compose
|
||||
3. Access the system in hostname:$EX_PORT
|
||||
4. Follow the system instructions to install WP
|
||||
5. Have fun!
|
||||
|
||||
31
basic/docker-compose.yml
Normal file
31
basic/docker-compose.yml
Normal file
@ -0,0 +1,31 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mysql:8.0
|
||||
container_name: $CONTAINER_NAME_db
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
environment:
|
||||
- MYSQL_DATABASE=$MYSQL_WP_DATABASE
|
||||
volumes:
|
||||
- ./dbdata:/var/lib/mysql
|
||||
command: '--default-authentication-plugin=mysql_native_password'
|
||||
|
||||
wordpress:
|
||||
depends_on:
|
||||
- db
|
||||
image: wordpress
|
||||
container_name: $CONTAINER_NAME_wp
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
ports:
|
||||
- $EX_PORT:80
|
||||
environment:
|
||||
- WORDPRESS_DB_HOST=db:3306
|
||||
- WORDPRESS_DB_USER=$MYSQL_USER
|
||||
- WORDPRESS_DB_PASSWORD=$MYSQL_PASSWORD
|
||||
- WORDPRESS_DB_NAME=$MYSQL_WP_DATABASE
|
||||
volumes:
|
||||
- ./wordpress:/var/www/html
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user