From 80b0faca6f03551fb1c0e19b053a682886a80eff Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 25 Nov 2023 14:10:29 +0100 Subject: [PATCH] changed docker exec to docker-compose exec --- roles/docker-akaunting/README.md | 6 +++--- roles/docker-gitea/README.md | 6 ++---- roles/docker-mastodon/README.md | 4 ++-- roles/docker-mediawiki/README.md | 2 +- roles/docker-peertube/README.md | 2 +- roles/docker-wordpress/README.md | 6 +++--- roles/docker-yourls/README.md | 2 +- 7 files changed, 13 insertions(+), 15 deletions(-) diff --git a/roles/docker-akaunting/README.md b/roles/docker-akaunting/README.md index 48e526ac..c8a967ab 100644 --- a/roles/docker-akaunting/README.md +++ b/roles/docker-akaunting/README.md @@ -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 diff --git a/roles/docker-gitea/README.md b/roles/docker-gitea/README.md index 63856879..be481000 100644 --- a/roles/docker-gitea/README.md +++ b/roles/docker-gitea/README.md @@ -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 diff --git a/roles/docker-mastodon/README.md b/roles/docker-mastodon/README.md index eb524235..3dc6a2c5 100644 --- a/roles/docker-mastodon/README.md +++ b/roles/docker-mastodon/README.md @@ -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 diff --git a/roles/docker-mediawiki/README.md b/roles/docker-mediawiki/README.md index 9ff8c415..27979f03 100644 --- a/roles/docker-mediawiki/README.md +++ b/roles/docker-mediawiki/README.md @@ -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: diff --git a/roles/docker-peertube/README.md b/roles/docker-peertube/README.md index 18ba943e..9daf673d 100644 --- a/roles/docker-peertube/README.md +++ b/roles/docker-peertube/README.md @@ -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 diff --git a/roles/docker-wordpress/README.md b/roles/docker-wordpress/README.md index e3780150..5795cb41 100644 --- a/roles/docker-wordpress/README.md +++ b/roles/docker-wordpress/README.md @@ -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 diff --git a/roles/docker-yourls/README.md b/roles/docker-yourls/README.md index 586c3b67..44d6d8df 100644 --- a/roles/docker-yourls/README.md +++ b/roles/docker-yourls/README.md @@ -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 ```