mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-14 17:01:05 +01:00
18 lines
307 B
Markdown
18 lines
307 B
Markdown
|
# role docker-wordpress
|
||
|
|
||
|
## database access
|
||
|
To access the database execute
|
||
|
```bash
|
||
|
docker exec -it wordpress_database_1 /bin/mysql -u wordpress -p
|
||
|
```
|
||
|
## bash in application
|
||
|
docker exec -it wordpress_application_1 /bin/sh
|
||
|
|
||
|
## update wp-config.php
|
||
|
```bash
|
||
|
cat > wp-config.php << EOF
|
||
|
<?php
|
||
|
#content
|
||
|
EOF
|
||
|
```
|