2023-08-22 23:56:56 +02:00
|
|
|
# role docker-gitea
|
2020-12-25 13:09:06 +01:00
|
|
|
|
2022-11-16 11:16:06 +01:00
|
|
|
## update
|
|
|
|
```bash
|
2023-12-05 18:45:26 +01:00
|
|
|
cd {{docker_compose_instance_directory}}
|
2023-04-19 00:03:13 +02:00
|
|
|
docker-compose down
|
|
|
|
docker-compose pull
|
|
|
|
docker-compose up -d
|
2022-11-16 11:16:06 +01:00
|
|
|
```
|
|
|
|
Keep in mind to track and to don't interrupt the update process until the migration is done.
|
|
|
|
|
2022-04-11 08:12:12 +02:00
|
|
|
## set variables
|
|
|
|
```bash
|
|
|
|
COMPOSE_HTTP_TIMEOUT=600
|
|
|
|
DOCKER_CLIENT_TIMEOUT=600
|
|
|
|
```
|
|
|
|
|
|
|
|
## recreate
|
|
|
|
```bash
|
2023-12-05 18:45:26 +01:00
|
|
|
cd {{docker_compose_instance_directory}} && docker-compose -p gitea up -d --force-recreate
|
2022-04-11 08:12:12 +02:00
|
|
|
```
|
|
|
|
|
2020-12-25 13:09:06 +01:00
|
|
|
## database access
|
|
|
|
To access the database execute
|
|
|
|
```bash
|
2023-11-25 14:10:29 +01:00
|
|
|
docker-compose exec -it database /bin/mysql -u gitea -p
|
2020-12-25 13:09:06 +01:00
|
|
|
```
|
|
|
|
## bash in application
|
2025-01-30 12:14:18 +01:00
|
|
|
docker-compose exec -it application /bin/sh
|