Compare commits
11 Commits
fce313d45c
...
renovate/c
| Author | SHA1 | Date | |
|---|---|---|---|
| c97c147d1a | |||
|
|
936d304983 | ||
|
|
eddc128ef2 | ||
|
|
e32ece8e0d | ||
|
|
ff621405e3 | ||
|
|
b44d0aa2d9 | ||
| 5fe22ee906 | |||
| 1f7bbaa96b | |||
| aca4db7af6 | |||
|
|
6985d0dbc1 | ||
|
|
3e1d191bee |
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,5 +1,3 @@
|
||||
.env
|
||||
.docker
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/archives
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=archives
|
||||
|
||||
@@ -38,4 +36,6 @@
|
||||
*.txz
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/archives
|
||||
|
||||
.env
|
||||
.docker
|
||||
backup/
|
||||
|
||||
13
gatus/compose.yml
Normal file
13
gatus/compose.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
name: gatus
|
||||
services:
|
||||
gatus:
|
||||
ports:
|
||||
- 50000:8080
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- ./data:/data
|
||||
environment:
|
||||
- GATUS_CONFIG_PATH=/config
|
||||
container_name: gatus
|
||||
image: twinproduction/gatus
|
||||
restart: always
|
||||
5
gatus/config/global.yaml
Normal file
5
gatus/config/global.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
metrics: false
|
||||
ui:
|
||||
title: Health Dashboard | neller.org
|
||||
header: neller.org
|
||||
logo: ""
|
||||
39
gatus/config/neller.yaml
Normal file
39
gatus/config/neller.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
storage:
|
||||
type: sqlite
|
||||
path: /data/data.db
|
||||
endpoints:
|
||||
- name: Vault
|
||||
url: https://vault.neller.org
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- name: Cloud
|
||||
url: https://cloud.neller.org
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- name: Git
|
||||
url: https://git.neller.org
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- name: vb
|
||||
url: https://vb.neller.org
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- name: epub2go
|
||||
url: https://epub2go.neller.org
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- name: TeamSpeak3
|
||||
url: tcp://ts.neller.org:30033
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[CONNECTED] == true"
|
||||
- name: Domain
|
||||
url: tcp://neller.org
|
||||
interval: 24h
|
||||
conditions:
|
||||
- "[DOMAIN_EXPIRATION] > 720h"
|
||||
4
gitea/act_runner/.env.example
Normal file
4
gitea/act_runner/.env.example
Normal file
@@ -0,0 +1,4 @@
|
||||
#CONFIG_FILE=/config.yaml
|
||||
GITEA_INSTANCE_URL=git.example.org
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN=abc
|
||||
GITEA_RUNNER_NAME=runner1
|
||||
@@ -2,13 +2,10 @@
|
||||
services:
|
||||
runner:
|
||||
image: gitea/act_runner:latest
|
||||
environment:
|
||||
CONFIG_FILE: /config.yaml
|
||||
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
|
||||
GITEA_RUNNER_NAME: "${RUNNER_NAME}"
|
||||
GITEA_RUNNER_LABELS: "${RUNNER_LABELS}"
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./config.yaml:/config.yaml
|
||||
- ./data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock # needed to create a separate docker container for each job
|
||||
#- ./config.yaml:/config.yaml
|
||||
#- ./data:/data
|
||||
|
||||
7
gitea/core/.env.example
Normal file
7
gitea/core/.env.example
Normal file
@@ -0,0 +1,7 @@
|
||||
USER_UID=1000
|
||||
USER_GID=1000
|
||||
GITEA__database__DB_TYPE=postgres
|
||||
GITEA__database__HOST=db:5432
|
||||
GITEA__database__NAME=gitea
|
||||
GITEA__database__USER=gitea
|
||||
GITEA__database__PASSWD=
|
||||
25
gitea/core/compose.yml
Normal file
25
gitea/core/compose.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
services:
|
||||
gitea:
|
||||
image: docker.gitea.com/gitea:1.24.6
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "50005:3000"
|
||||
- "22:22"
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: docker.io/library/postgres:14
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=gitea
|
||||
- POSTGRES_DB=gitea
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
|
||||
6
nextcloud/backup.sh
Executable file
6
nextcloud/backup.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
source .env
|
||||
CONTAINER_APP=app
|
||||
docker compose exec $CONTAINER_APP ./occ maintenance:mode --on
|
||||
docker compose exec $MYSQL_HOST sh -c "mariadb-dump --single-transaction -h $MYSQL_HOST -u $MYSQL_USER --password=$MYSQL_PASSWORD $MYSQL_DATABASE > backup/nextcloud-sqlbkp_`date +'%Y%m%d'`.bak" \
|
||||
&& echo "SQL dump saved"
|
||||
docker compose exec $CONTAINER_APP ./occ maintenance:mode --off
|
||||
@@ -5,11 +5,12 @@ services:
|
||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||
volumes:
|
||||
- ./db:/var/lib/mysql
|
||||
- ./backup:/backup
|
||||
env_file:
|
||||
- env
|
||||
- .env
|
||||
|
||||
app:
|
||||
image: nextcloud
|
||||
image: nextcloud:31
|
||||
restart: always
|
||||
ports:
|
||||
- 50000:80
|
||||
@@ -18,4 +19,4 @@ services:
|
||||
volumes:
|
||||
- ./nextcloud:/var/www/html
|
||||
env_file:
|
||||
- env
|
||||
- .env
|
||||
|
||||
3
renovate.json
Normal file
3
renovate.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||
}
|
||||
@@ -3,6 +3,7 @@ services:
|
||||
sonarqube:
|
||||
image: sonarqube:community
|
||||
hostname: sonarqube
|
||||
restart: always
|
||||
container_name: sonarqube
|
||||
read_only: true
|
||||
depends_on:
|
||||
@@ -23,6 +24,7 @@ services:
|
||||
- ${NETWORK_TYPE:-ipv4}
|
||||
db:
|
||||
image: postgres:17
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user