mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 23:38:13 +02:00
Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation
This commit is contained in:
38
roles/web-app-gitea/Administration.md
Normal file
38
roles/web-app-gitea/Administration.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# Administration
|
||||
|
||||
## update
|
||||
```bash
|
||||
cd {{docker_compose.directories.instance}}
|
||||
docker-compose down
|
||||
docker-compose pull
|
||||
docker-compose up -d
|
||||
```
|
||||
Keep in mind to track and to don't interrupt the update process until the migration is done.
|
||||
|
||||
## set variables
|
||||
```bash
|
||||
COMPOSE_HTTP_TIMEOUT=600
|
||||
DOCKER_CLIENT_TIMEOUT=600
|
||||
```
|
||||
|
||||
## recreate
|
||||
```bash
|
||||
cd {{docker_compose.directories.instance}} && docker-compose -p gitea up -d --force-recreate
|
||||
```
|
||||
|
||||
## database access
|
||||
To access the database execute
|
||||
```bash
|
||||
docker-compose exec -it database /bin/mysql -u gitea -p
|
||||
```
|
||||
## bash in application
|
||||
docker-compose exec -it application /bin/sh
|
||||
|
||||
## user management
|
||||
|
||||
### Change password
|
||||
```bash
|
||||
docker-compose exec --user git application gitea admin user change-password \
|
||||
--username administrator \
|
||||
--password "MyNewSecureP@ssw0rd"
|
||||
```
|
Reference in New Issue
Block a user