Compare commits

...

13 Commits

Author SHA1 Message Date
eneller
22f17e20e4 remove joplin 2025-11-03 00:42:37 +01:00
eneller
de0d71f881 fix: act_runner .env 2025-10-22 12:01:00 +00:00
eneller
69a29bb0ee renovate (dependabot) 2025-10-22 11:51:35 +00:00
eneller
936d304983 act_runner restart 2025-10-08 20:50:22 +00:00
eneller
eddc128ef2 fix: gatus teamspeak check 2025-10-07 14:54:43 +00:00
eneller
e32ece8e0d gatus status page 2025-10-07 12:53:17 +00:00
eneller
ff621405e3 gatus 2025-10-07 12:13:15 +02:00
eneller
b44d0aa2d9 gitea act_runner 2025-10-04 19:37:23 +02:00
5fe22ee906 feat: gitea 2025-10-03 18:47:44 +02:00
1f7bbaa96b begin gitea 2025-09-26 01:56:27 +02:00
aca4db7af6 pin nextcloud to major version 2025-09-23 11:16:14 +02:00
eneller
6985d0dbc1 sonarqube restart 2025-08-19 16:11:04 +00:00
jojo
3e1d191bee feat: nextcloud backup script 2025-08-07 09:27:33 +02:00
15 changed files with 131 additions and 43 deletions

6
.gitignore vendored
View File

@@ -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
View 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
View File

@@ -0,0 +1,5 @@
metrics: false
ui:
title: Health Dashboard | neller.org
header: neller.org
logo: ""

39
gatus/config/neller.yaml Normal file
View 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"

View File

@@ -0,0 +1,4 @@
#CONFIG_FILE=/config.yaml
GITEA_INSTANCE_URL=https://git.example.org
GITEA_RUNNER_REGISTRATION_TOKEN=abc
GITEA_RUNNER_NAME=runner1

View File

@@ -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
View 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
View 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

View File

@@ -1,29 +0,0 @@
services:
db:
image: postgres:14
container_name: postgres
# ports:
# - 5433:5432
restart: unless-stopped
volumes:
- ./postgres:/var/lib/postgresql/data # Make database files persistent. Otherwise data is lost when the container is destroyed.
environment:
- APP_PORT=22300 # port joplin-server is reachable at
- POSTGRES_PASSWORD=mypassword123 # database password
- POSTGRES_USER=admin # database user
- POSTGRES_DB=joplin # database name
app:
image: joplin/server:latest
depends_on:
- db
ports:
- "50002:22300" # Expose internal port to LAN
restart: unless-stopped
environment:
- APP_BASE_URL=https://joplin.example.org
- DB_CLIENT=pg
- POSTGRES_PASSWORD=mypassword123
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=admin
- POSTGRES_PORT=5432
- POSTGRES_HOST=db

6
nextcloud/backup.sh Executable file
View 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

View File

@@ -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

8
renovate/compose.yml Normal file
View File

@@ -0,0 +1,8 @@
name: renovate
services:
renovate:
image: renovate/renovate
volumes:
- ./config.js:/usr/src/app/config.js
environment:
- LOG_LEVEL=debug

View File

@@ -0,0 +1,10 @@
module.exports = {
platform: 'gitea',
endpoint: 'https://git.example.com/api/v1/',
token: '',
onboarding: true,
autodiscover: true,
configFileNames: [".gitea/renovate.json"]
};

View File

@@ -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