From 61a65f53cbfe09b38e66364f8318bc7036e49ba2 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Mon, 11 Apr 2022 08:12:12 +0200 Subject: [PATCH] updated README.md --- roles/docker-gitea/README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/roles/docker-gitea/README.md b/roles/docker-gitea/README.md index b1ce0ba2..807042fd 100644 --- a/roles/docker-gitea/README.md +++ b/roles/docker-gitea/README.md @@ -1,12 +1,25 @@ # role docker-gitea +## set variables +```bash + COMPOSE_HTTP_TIMEOUT=600 + DOCKER_CLIENT_TIMEOUT=600 + GITEA_APPLICATION_DOCKER_CONTAINER=gitea_application_1 + GITEA_DATABASE_DOCKER_CONTAINER=gitea_database_1 +``` + +## recreate +```bash +cd /home/administrator/docker-compose/gitea/ && docker-compose -p gitea up -d --force-recreate +``` + ## database access To access the database execute ```bash - docker exec -it gitea_database_1 /bin/mysql -u gitea -p + docker exec -it $GITEA_DATABASE_DOCKER_CONTAINER /bin/mysql -u gitea -p ``` ## bash in application -docker exec -it gitea_application_1 /bin/sh +docker exec -it $GITEA_APPLICATION_DOCKER_CONTAINER /bin/sh ## update app.ini ```bash