mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-06 13:17:58 +00:00
- networks: add web-app-drupal subnet 192.168.104.80/28 - ports: map localhost http port 8060 - add role files: tasks, vars, schema, users, templates (Dockerfile, docker-compose, settings.local.php, upload.ini) - add docs: README.md and Administration.md Ref: https://chatgpt.com/share/690535c5-b55c-800f-8556-5335a6b8a33f
30 lines
573 B
Markdown
30 lines
573 B
Markdown
# Administration
|
|
|
|
## Shell access
|
|
|
|
```bash
|
|
docker-compose exec -it application /bin/bash
|
|
```
|
|
|
|
## Drush (inside the container)
|
|
|
|
```bash
|
|
drush --version
|
|
drush cr # Cache rebuild
|
|
drush status # Site status
|
|
drush cim -y # Config import (if using config sync)
|
|
drush updb -y # Run DB updates
|
|
```
|
|
|
|
## Database access (local DB service)
|
|
|
|
```bash
|
|
docker-compose exec -it database /bin/mysql -u drupal -p
|
|
```
|
|
|
|
## Test Email
|
|
|
|
```bash
|
|
docker-compose exec -it application /bin/bash -lc 'echo "Test Email" | sendmail -v your-email@example.com'
|
|
```
|