Adds nexus and vikunja

This commit is contained in:
tga
2026-07-17 11:16:47 +02:00
parent 5eaed28234
commit 7e87a6cbb9
39 changed files with 214 additions and 2185 deletions
+7
View File
@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/nexus/storage/data
Driver=local
Options=bind
Type=none
VolumeName=nexus-data
+27
View File
@@ -0,0 +1,27 @@
[Unit]
Description=Nexus database container
[Container]
AutoUpdate=registry
ContainerName=nexus-database
Environment=POSTGRES_USER=nexus
Environment=POSTGRES_DB=nexus
Environment=TZ=Europe/Zurich
HealthCmd=pg_isready -U nexus
HealthInterval=30s
HealthTimeout=10s
HealthRetries=5
Image=docker.io/postgres:18
Label=io.containers.autoupdate=registry
Pod=nexus.pod
Secret=database-password,type=env,target=POSTGRES_PASSWORD
StartWithPod=true
Timezone=Europe/Zurich
Volume=nexus-database.volume:/var/lib/postgresql
Volume=/var/mnt/nas/containers/nexus/storage/database-backup:/backup
[Service]
Restart=always
[Install]
WantedBy=default.target
+2
View File
@@ -0,0 +1,2 @@
[Volume]
VolumeName=nexus-database
+30
View File
@@ -0,0 +1,30 @@
[Unit]
Description=Nexus container
After=nexus-database.container
Requires=nexus-database.container
[Container]
AutoUpdate=registry
ContainerName=nexus
Environment=NEXUS_DATASTORE_NEXUS_JDBCURL=jdbc:postgresql://nexus-database:5432/nexus
Environment=NEXUS_DATASTORE_NEXUS_USERNAME=nexus
Environment=TZ=Europe/Zurich
HealthCmd=CMD curl -f http://localhost:8081/service/rest/v1/status
HealthInterval=30s
HealthTimeout=10s
HealthRetries=5
Image=docker.io/sonatype/nexus3:latest
Label=io.containers.autoupdate=registry
Pod=nexus.pod
Secret=database-password,type=env,target=NEXUS_DATASTORE_NEXUS_PASSWORD
Secret=secrets-key-file,type=env,target=NEXUS_SECRETS_KEY_FILE
StartWithPod=true
StopTimeout=60
Timezone=Europe/Zurich
Volume=nexus-data.volume:/nexus-data
[Service]
Restart=always
[Install]
WantedBy=default.target
+3
View File
@@ -0,0 +1,3 @@
[Pod]
PodName=nexus
PublishPort=9016:8081