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