refactor: README.md

main
Евгений Сугоняко 2023-10-06 18:08:58 +03:00
parent 22faab7add
commit 49e260bb4b
1 changed files with 9 additions and 18 deletions

View File

@ -1,4 +1,4 @@
# Installing and running Gitea 1.21 in Docker on Ubuntu Server 22.04.3
# Installing and running Gitea 1.20.4 in Docker on Ubuntu Server 22.04.3
[https://gitea.com](https://gitea.com/)
## List of contents
@ -35,7 +35,7 @@
| Certbot for Ubuntu |[Website](https://certbot.eff.org/)|
| Docker |[Website](https://www.docker.com/)|
| MySQL |[Website](https://www.mysql.com/)|
| Gitea 1.21 |[Website](https://gitea.com/)|
| Gitea 1.20.4 |[Website](https://gitea.com/)|
| Act runner 0.2.5 |[Documentation](https://docs.gitea.com/usage/actions/act-runner)|
## Detailed instructions on how to deploy to VPS/VDS server
@ -301,29 +301,20 @@
services:
gitea_db_mysql:
container_name: gitea_db_mysql
image: mysql:8
image: mysql:8.0
ports:
- "3310:3310"
restart: always
networks:
- gitea
environment:
MYSQL_DATABASE: giteadb
MYSQL_USER: gitea
MYSQL_PASSWORD: gitea
MYSQL_ROOT_PASSWORD: root
MYSQL_ALLOW_EMPTY_PASSWORD: false
volumes:
- /home/mysql/giteadb/volume:/var/lib/mysql
- /home/apps/gitea_docker/volumes/mysql:/var/lib/mysql
command: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
gitea_init:
image: mysql:8
depends_on:
- gitea_db_mysql
environment:
MYSQL_ROOT_PASSWORD: root
command: >
bash -c "mysql -h gitea_db_mysql -u root -p${MYSQL_ROOT_PASSWORD} -e 'SET old_passwords=0; CREATE DATABASE giteadb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; GRANT ALL PRIVILEGES ON giteadb.* TO gitea; FLUSH PRIVILEGES;'"
```
- Exit and save the changes:
@ -375,13 +366,13 @@
services:
server:
image: gitea/gitea:1.21
image: gitea/gitea:1.20.4
container_name: gitea
environment:
- USER_UID=109
- USER_GID=113
- GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=gitea_db_mysql:3310
- GITEA__database__HOST=gitea_db_mysql:3306
- GITEA__database__NAME=giteadb
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
@ -389,8 +380,8 @@
networks:
- gitea
volumes:
- ./home/applications/gitea/volume:/data
- /var/gitea/.ssh/:/data/gitea/.ssh
- /home/apps/gitea_docker/volumes/gitea:/data
- /home/apps/gitea_docker/volumes/.ssh/:/data/gitea/.ssh
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports: