mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-25 03:25:03 +01:00
changed docker exec to docker-compose exec
This commit is contained in:
parent
4b008750dd
commit
80b0faca6f
@ -20,19 +20,19 @@ docker-compose -p akaunting up -d
|
||||
### get logs
|
||||
|
||||
```bash
|
||||
docker exec -it akaunting tail -n 300 storage/logs/laravel.log
|
||||
docker-compose exec -it akaunting tail -n 300 storage/logs/laravel.log
|
||||
```
|
||||
|
||||
### enter akaunting container
|
||||
|
||||
```bash
|
||||
docker exec -it akaunting bash
|
||||
docker-compose exec -it akaunting bash
|
||||
```
|
||||
|
||||
### enter database container
|
||||
|
||||
```bash
|
||||
docker exec -it akaunting-db /bin/mysql -u admin --password=$akaunting_db_password akaunting
|
||||
docker-compose exec -it akaunting-db /bin/mysql -u admin --password=$akaunting_db_password akaunting
|
||||
```
|
||||
|
||||
## manuel update
|
||||
|
@ -13,8 +13,6 @@ Keep in mind to track and to don't interrupt the update process until the migrat
|
||||
```bash
|
||||
COMPOSE_HTTP_TIMEOUT=600
|
||||
DOCKER_CLIENT_TIMEOUT=600
|
||||
GITEA_APPLICATION_DOCKER_CONTAINER=gitea_application_1
|
||||
GITEA_DATABASE_DOCKER_CONTAINER=gitea_database_1
|
||||
```
|
||||
|
||||
## recreate
|
||||
@ -25,10 +23,10 @@ cd {{path_docker_compose_folder}} && docker-compose -p gitea up -d --force-recre
|
||||
## database access
|
||||
To access the database execute
|
||||
```bash
|
||||
docker exec -it $GITEA_DATABASE_DOCKER_CONTAINER /bin/mysql -u gitea -p
|
||||
docker-compose exec -it database /bin/mysql -u gitea -p
|
||||
```
|
||||
## bash in application
|
||||
docker exec -it $GITEA_APPLICATION_DOCKER_CONTAINER /bin/sh
|
||||
docker-compose exec -it application /bin/sh
|
||||
|
||||
## update app.ini
|
||||
```bash
|
||||
|
@ -14,7 +14,7 @@ rm -vR {{path_docker_compose_files}}mastodon
|
||||
|
||||
## access terminal
|
||||
```bash
|
||||
docker exec -it mastodon-web-1 /bin/bash
|
||||
docker-compose exec -it web /bin/bash
|
||||
```
|
||||
|
||||
## set rights
|
||||
@ -22,7 +22,7 @@ docker exec -it mastodon-web-1 /bin/bash
|
||||
After setting up mastodon you need to give the rights
|
||||
|
||||
```bash
|
||||
docker exec -it -u root mastodon-web-1 chown -R 991:991 public
|
||||
docker-compose exec -it -u root web chown -R 991:991 public
|
||||
```
|
||||
|
||||
## further information
|
||||
|
@ -3,7 +3,7 @@
|
||||
Login to the container:
|
||||
|
||||
```bash
|
||||
docker exec -it mediawiki_application_1 /bin/sh
|
||||
docker-compose exec -it application /bin/sh
|
||||
```
|
||||
|
||||
Seed the LocalSettings.php:
|
||||
|
@ -15,7 +15,7 @@ docker-compose up -d
|
||||
|
||||
## access terminal
|
||||
```bash
|
||||
docker exec -it peertube-application-1 /bin/bash
|
||||
docker-compose exec -it application /bin/bash
|
||||
```
|
||||
|
||||
## update config
|
||||
|
@ -5,13 +5,13 @@
|
||||
## access database
|
||||
To access the database execute
|
||||
```bash
|
||||
docker exec -it wordpress-database-1 /bin/mysql -u wordpress -p
|
||||
docker-compose exec -it database /bin/mysql -u wordpress -p
|
||||
```
|
||||
|
||||
## upgrade database
|
||||
To upgrade the database execute
|
||||
```bash
|
||||
docker exec -it wordpress-database-1 /bin/mysql_upgrade --user=root --password=
|
||||
docker-compose exec -it database /bin/mysql_upgrade --user=root --password=
|
||||
```
|
||||
|
||||
## change database root password
|
||||
@ -19,7 +19,7 @@ To upgrade the database execute
|
||||
- https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password
|
||||
|
||||
## bash in application
|
||||
docker exec -it wordpress-application-1 /bin/sh
|
||||
docker-compose exec -it wordpress-application-1 /bin/sh
|
||||
|
||||
## update wp-config.php
|
||||
```bash
|
||||
|
@ -5,5 +5,5 @@
|
||||
To login to the database type in:
|
||||
|
||||
```bash
|
||||
docker exec -it yourls_database_1 /bin/mysql -u yourls -p
|
||||
docker-compose exec -it database /bin/mysql -u yourls -p
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user