Improves for 1st database initializing with proper env var, and corrects update-db.
This commit is contained in:
parent
da76a4f226
commit
075cfed0c5
@ -34,7 +34,9 @@ LETSENCRYPT_TEST=true
|
||||
|
||||
### **Database Configuration**
|
||||
```bash
|
||||
WORDPRESS_DB_PASSWORD=wordpress
|
||||
WORDPRESS_DB_PASSWORD=wordpress # Used for MYSQL_PASSWORD AND MYSQL_ROOT_PASSWORD
|
||||
MYSQL_DATABASE=wordpress
|
||||
MYSQL_USER=wordpress
|
||||
```
|
||||
|
||||
### **Volume Configuration**
|
||||
@ -51,7 +53,7 @@ HTML_VOLUME=test_html_staging
|
||||
|
||||
## 📂 Configuration Files
|
||||
|
||||
Two important Nginx configuration files are available in the project directory:
|
||||
Two important Nginx configuration files are available in the project directory. After editing, perform a restart:
|
||||
```bash
|
||||
./default.conf # Automatically generated each time the script runs
|
||||
./nginx.conf # Manually customizable configuration
|
||||
|
@ -22,7 +22,12 @@ services:
|
||||
image: ${IMAGE_DATABASE:-database}
|
||||
container_name: ${COMPOSE_PROJECT_NAME}_database
|
||||
volumes:
|
||||
- db:/var/lib/mysql
|
||||
- db:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_PASSWORD=${WORDPRESS_DB_PASSWORD:-fake}
|
||||
- MYSQL_ROOT_PASSWORD=${WORDPRESS_DB_PASSWORD:-fake}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE:-wordpress}
|
||||
- MYSQL_USER=${MYSQL_USER:-wordpress}
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
|
Loading…
x
Reference in New Issue
Block a user