Merge pull request 'users/marcio.fernandes/topic-backups' (#1) from users/marcio.fernandes/topic-backups into master
Reviewed-on: public/gitea#1
This commit was merged in pull request #1.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
Git com informação sobre instalação do git tea
|
||||
este git é usado na instalação e aplicação http://git.limbosolutions.com
|
||||
|
||||
Actualmente está alojado em um raspberrypi
|
||||
9
docker/README.md
Normal file
9
docker/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# compose file
|
||||
## Requirements
|
||||
* [Docker Image](https://git.limbosolutions.com/marcio.fernandes/duplicati-utils/src/branch/main/docker/sqlclient.DockerFile)
|
||||
|
||||
|
||||
# old info
|
||||
## Backup
|
||||
/usr/bin/docker exec -u git -w /tmp/backups gitea bash -c "/app/gitea/gitea dump"
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
/usr/bin/docker exec -u git -w /tmp/backups gitea bash -c "/app/gitea/gitea dump"
|
||||
@@ -4,22 +4,20 @@ services:
|
||||
image: kunde21/gitea-arm
|
||||
container_name: gitea
|
||||
environment:
|
||||
#- USER_UID=1000
|
||||
#- USER_GID=1000
|
||||
- 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}
|
||||
restart: always
|
||||
- DISABLE_SSH=true
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ${GITEA_VOLUME_DATA}:/data
|
||||
- data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ${GITEA_VOLUME_BACKUPS}:/tmp/backups
|
||||
#ports:
|
||||
# - "80:3000"
|
||||
#- "22:22"
|
||||
#- "3000:3000" web ui
|
||||
#- "22:22" ssh
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
@@ -36,17 +34,38 @@ services:
|
||||
- MYSQL_PASSWORD=${GITEA_DB_PASSWORD}
|
||||
- MYSQL_DATABASE=${GITEA_DB_NAME}
|
||||
volumes:
|
||||
- ${GITEA_VOLUME_DATABASE}:/var/lib/mysql
|
||||
- db:/var/lib/mysql
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
networks:
|
||||
gitea_network:
|
||||
duplicati:
|
||||
container_name: gitea_duplicati
|
||||
image: duplicati-sqlclient
|
||||
environment:
|
||||
- GITEA_DB_HOST=db
|
||||
- GITEA_DB_NAME=${GITEA_DB_NAME}
|
||||
- GITEA_DB_USER=${GITEA_DB_USER}
|
||||
- GITEA_DB_PASSWORD=${GITEA_DB_PASSWORD}
|
||||
- GITEA_DB_BACKUP_TARGETFOLDER=${GITEA_DB_BACKUP_TARGETFOLDER}
|
||||
volumes:
|
||||
- duplicati-data:/data
|
||||
- duplicati-data:/git/duplicati-data:ro
|
||||
- data:/git/data:ro
|
||||
- db:/git/db:ro
|
||||
- db-dumps:/git/db-dumps
|
||||
ports:
|
||||
- 8202:8200
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
gitea_network:
|
||||
volumes:
|
||||
data:
|
||||
db:
|
||||
db-dumps:
|
||||
duplicati-data:
|
||||
networks:
|
||||
macvlan:
|
||||
external: true
|
||||
name: macvlan_pub_net
|
||||
gitea_network:
|
||||
name: gitea_network
|
||||
driver: bridge
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
docker-compose pull
|
||||
docker-compose up -d
|
||||
Reference in New Issue
Block a user