changed docker exec to docker-compose exec

This commit is contained in:
Kevin Veen-Birkenbach 2023-11-25 14:10:29 +01:00
parent 1722c4f841
commit 93733e9e0e
7 changed files with 13 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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
``` ```