mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 21:01:53 +01:00
29 lines
628 B
Markdown
29 lines
628 B
Markdown
# role docker-gitea
|
|
|
|
## update
|
|
```bash
|
|
cd {{docker_compose_instance_directory}}
|
|
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_instance_directory}} && 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 |