revission
This commit is contained in:
48
README.md
48
README.md
@@ -1,25 +1,25 @@
|
|||||||
# Gitea
|
# Gitea
|
||||||
|
|
||||||
- [Homepage](https://gitea.io/)
|
- [Homepage](https://gitea.io/)
|
||||||
- [Documentation](https://docs.gitea.io)
|
- [Documentation](https://docs.gitea.io)
|
||||||
- [API](https://try.gitea.io/api/swagger)
|
- [API](https://try.gitea.io/api/swagger)
|
||||||
- [GitHub](https://github.com/go-gitea)
|
- [GitHub](https://github.com/go-gitea)
|
||||||
|
|
||||||
## Backup And Restore
|
## Backup And Restore
|
||||||
|
|
||||||
_Source - https://docs.gitea.io/en-us/backup-and-restore/_
|
_Source - https://docs.gitea.io/en-us/backup-and-restore/_
|
||||||
|
|
||||||
### Gitea dump from docker host
|
### Gitea dump from docker host
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# exec -> execute
|
# exec -> execute
|
||||||
# -u -> container name
|
# -u -> container name
|
||||||
# -w -> working directory on container
|
# -w -> working directory on container
|
||||||
# bash -c "x" -> execute bash with command x
|
# bash -c "x" -> execute bash with command x
|
||||||
|
|
||||||
/usr/bin/docker exec -u git -w /tmp/backups gitea bash -c "/app/gitea/gitea dump"
|
/usr/bin/docker exec -u git -w /tmp/backups gitea bash -c "/app/gitea/gitea dump"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Other References
|
## Other References
|
||||||
|
|
||||||
- limbosolutions gitea hosting https://git.limbosolutions.com (chech the git repository https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com )
|
- limbosolutions gitea hosting https://git.limbosolutions.com (chech the git repository https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com )
|
||||||
@@ -1,49 +1,49 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
image: kunde21/gitea-arm
|
image: kunde21/gitea-arm
|
||||||
container_name: gitea
|
container_name: gitea
|
||||||
environment:
|
environment:
|
||||||
- GITEA__database__DB_TYPE=mysql
|
- GITEA__database__DB_TYPE=mysql
|
||||||
- GITEA__database__HOST=db:3306
|
- GITEA__database__HOST=db:3306
|
||||||
- GITEA__database__NAME=${GITEA_DB_NAME}
|
- GITEA__database__NAME=${GITEA_DB_NAME}
|
||||||
- GITEA__database__USER=${GITEA_DB_USER}
|
- GITEA__database__USER=${GITEA_DB_USER}
|
||||||
- GITEA__database__PASSWD=${GITEA_DB_PASSWORD}
|
- GITEA__database__PASSWD=${GITEA_DB_PASSWORD}
|
||||||
- DISABLE_SSH=true
|
- DISABLE_SSH=true
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- data:/data
|
- data:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
#ports:
|
#ports:
|
||||||
#- "3000:3000" web ui
|
#- "3000:3000" web ui
|
||||||
#- "22:22" ssh
|
#- "22:22" ssh
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
networks:
|
networks:
|
||||||
macvlan:
|
macvlan:
|
||||||
ipv4_address: ${GITEA_MACVLAN_IP}
|
ipv4_address: ${GITEA_MACVLAN_IP}
|
||||||
gitea_network:
|
gitea_network:
|
||||||
db:
|
db:
|
||||||
image: tobi312/rpi-mariadb:10.5-ubuntu
|
image: tobi312/rpi-mariadb:10.5-ubuntu
|
||||||
container_name: gitea_mariadb
|
container_name: gitea_mariadb
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
||||||
- MYSQL_USER=${GITEA_DB_USER}
|
- MYSQL_USER=${GITEA_DB_USER}
|
||||||
- MYSQL_PASSWORD=${GITEA_DB_PASSWORD}
|
- MYSQL_PASSWORD=${GITEA_DB_PASSWORD}
|
||||||
- MYSQL_DATABASE=${GITEA_DB_NAME}
|
- MYSQL_DATABASE=${GITEA_DB_NAME}
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/mysql
|
- db:/var/lib/mysql
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
networks:
|
networks:
|
||||||
gitea_network:
|
gitea_network:
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
data:
|
||||||
db:
|
db:
|
||||||
networks:
|
networks:
|
||||||
macvlan:
|
macvlan:
|
||||||
external: true
|
external: true
|
||||||
name: macvlan_pub_net
|
name: macvlan_pub_net
|
||||||
gitea_network:
|
gitea_network:
|
||||||
Reference in New Issue
Block a user