added backup script and backed up qnap
This commit is contained in:
1
QNAP/gitea/.env
Normal file
1
QNAP/gitea/.env
Normal file
@@ -0,0 +1 @@
|
||||
GITEA_DB_PASSWORD=adt.cfv*ZQE6azm0qvk
|
||||
51
QNAP/gitea/docker-compose.yml
Normal file
51
QNAP/gitea/docker-compose.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
services:
|
||||
|
||||
server:
|
||||
image: gitea/gitea:1.23.7
|
||||
container_name: gitea-server
|
||||
restart: always
|
||||
environment:
|
||||
- TZ=America/New_York
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=db:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=gitea
|
||||
- GITEA__database__PASSWD=${GITEA_DB_PASSWORD}
|
||||
volumes:
|
||||
- /share/Media/gitea/data:/data
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.gitea.rule=Host(`gitea.kaspers.us`)" # ⚠️ UPDATE to your domain
|
||||
- "traefik.http.routers.gitea.entrypoints=websecure" # Assumes your HTTP entrypoint is 'web'
|
||||
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||
- "traefik.http.routers.gitea.tls=true"
|
||||
- "traefik.http.routers.gitea.tls.certresolver=letsencrypt"
|
||||
- "traefik.docker.network=proxy"
|
||||
- "traefik.constraint=proxy-public"
|
||||
networks:
|
||||
- gitea-net
|
||||
- proxy
|
||||
ports:
|
||||
- 3105:3000
|
||||
- 222:22
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: postgres:17.4
|
||||
container_name: gitea-db
|
||||
restart: always
|
||||
environment:
|
||||
- TZ=America/New_York
|
||||
- POSTGRES_DB=gitea
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=${GITEA_DB_PASSWORD}
|
||||
volumes:
|
||||
- /share/Media/gitea/db:/var/lib/postgresql/data
|
||||
networks:
|
||||
- gitea-net
|
||||
networks:
|
||||
gitea-net:
|
||||
driver: bridge
|
||||
proxy:
|
||||
external: true
|
||||
6
QNAP/gitea/environment-variables.json
Normal file
6
QNAP/gitea/environment-variables.json
Normal file
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"name": "GITEA_DB_PASSWORD",
|
||||
"value": "adt.cfv*ZQE6azm0qvk"
|
||||
}
|
||||
]
|
||||
8
QNAP/gitea/metadata.txt
Normal file
8
QNAP/gitea/metadata.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Stack Name: gitea
|
||||
Stack ID: 17
|
||||
Endpoint ID: 3
|
||||
Creation Date: 1755699243
|
||||
Update Date: 0
|
||||
Status: 1
|
||||
Type: 2
|
||||
Entry Point: docker-compose.yml
|
||||
37
QNAP/gitea/stack-info.json
Normal file
37
QNAP/gitea/stack-info.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"Id": 17,
|
||||
"Name": "gitea",
|
||||
"Type": 2,
|
||||
"EndpointId": 3,
|
||||
"SwarmId": "",
|
||||
"EntryPoint": "docker-compose.yml",
|
||||
"Env": [
|
||||
{
|
||||
"name": "GITEA_DB_PASSWORD",
|
||||
"value": "adt.cfv*ZQE6azm0qvk"
|
||||
}
|
||||
],
|
||||
"ResourceControl": {
|
||||
"Id": 11,
|
||||
"ResourceId": "3_gitea",
|
||||
"SubResourceIds": [],
|
||||
"Type": 6,
|
||||
"UserAccesses": [],
|
||||
"TeamAccesses": [],
|
||||
"Public": false,
|
||||
"AdministratorsOnly": true,
|
||||
"System": false
|
||||
},
|
||||
"Status": 1,
|
||||
"ProjectPath": "/data/compose/17",
|
||||
"CreationDate": 1755699243,
|
||||
"CreatedBy": "admin",
|
||||
"UpdateDate": 0,
|
||||
"UpdatedBy": "",
|
||||
"AdditionalFiles": null,
|
||||
"AutoUpdate": null,
|
||||
"Option": null,
|
||||
"GitConfig": null,
|
||||
"FromAppTemplate": false,
|
||||
"Namespace": ""
|
||||
}
|
||||
Reference in New Issue
Block a user