mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +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
|
### get logs
|
||||||
|
|
||||||
```bash
|
```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
|
### enter akaunting container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec -it akaunting bash
|
docker-compose exec -it akaunting bash
|
||||||
```
|
```
|
||||||
|
|
||||||
### enter database container
|
### enter database container
|
||||||
|
|
||||||
```bash
|
```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
|
## manuel update
|
||||||
|
@ -13,8 +13,6 @@ Keep in mind to track and to don't interrupt the update process until the migrat
|
|||||||
```bash
|
```bash
|
||||||
COMPOSE_HTTP_TIMEOUT=600
|
COMPOSE_HTTP_TIMEOUT=600
|
||||||
DOCKER_CLIENT_TIMEOUT=600
|
DOCKER_CLIENT_TIMEOUT=600
|
||||||
GITEA_APPLICATION_DOCKER_CONTAINER=gitea_application_1
|
|
||||||
GITEA_DATABASE_DOCKER_CONTAINER=gitea_database_1
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## recreate
|
## recreate
|
||||||
@ -25,10 +23,10 @@ cd {{path_docker_compose_folder}} && docker-compose -p gitea up -d --force-recre
|
|||||||
## database access
|
## database access
|
||||||
To access the database execute
|
To access the database execute
|
||||||
```bash
|
```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
|
## bash in application
|
||||||
docker exec -it $GITEA_APPLICATION_DOCKER_CONTAINER /bin/sh
|
docker-compose exec -it application /bin/sh
|
||||||
|
|
||||||
## update app.ini
|
## update app.ini
|
||||||
```bash
|
```bash
|
||||||
|
@ -14,7 +14,7 @@ rm -vR {{path_docker_compose_files}}mastodon
|
|||||||
|
|
||||||
## access terminal
|
## access terminal
|
||||||
```bash
|
```bash
|
||||||
docker exec -it mastodon-web-1 /bin/bash
|
docker-compose exec -it web /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
## set rights
|
## set rights
|
||||||
@ -22,7 +22,7 @@ docker exec -it mastodon-web-1 /bin/bash
|
|||||||
After setting up mastodon you need to give the rights
|
After setting up mastodon you need to give the rights
|
||||||
|
|
||||||
```bash
|
```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
|
## further information
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Login to the container:
|
Login to the container:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec -it mediawiki_application_1 /bin/sh
|
docker-compose exec -it application /bin/sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Seed the LocalSettings.php:
|
Seed the LocalSettings.php:
|
||||||
|
@ -15,7 +15,7 @@ docker-compose up -d
|
|||||||
|
|
||||||
## access terminal
|
## access terminal
|
||||||
```bash
|
```bash
|
||||||
docker exec -it peertube-application-1 /bin/bash
|
docker-compose exec -it application /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
## update config
|
## update config
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
## access database
|
## access database
|
||||||
To access the database execute
|
To access the database execute
|
||||||
```bash
|
```bash
|
||||||
docker exec -it wordpress-database-1 /bin/mysql -u wordpress -p
|
docker-compose exec -it database /bin/mysql -u wordpress -p
|
||||||
```
|
```
|
||||||
|
|
||||||
## upgrade database
|
## upgrade database
|
||||||
To upgrade the database execute
|
To upgrade the database execute
|
||||||
```bash
|
```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
|
## 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
|
- https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password
|
||||||
|
|
||||||
## bash in application
|
## bash in application
|
||||||
docker exec -it wordpress-application-1 /bin/sh
|
docker-compose exec -it wordpress-application-1 /bin/sh
|
||||||
|
|
||||||
## update wp-config.php
|
## update wp-config.php
|
||||||
```bash
|
```bash
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
To login to the database type in:
|
To login to the database type in:
|
||||||
|
|
||||||
```bash
|
```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