Adds nexus and vikunja
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
[Volume]
|
||||
Copy=true
|
||||
Device=/var/mnt/nas/containers/nexus/storage/data
|
||||
Driver=local
|
||||
Options=bind
|
||||
Type=none
|
||||
VolumeName=nexus-data
|
||||
@@ -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
|
||||
@@ -0,0 +1,2 @@
|
||||
[Volume]
|
||||
VolumeName=nexus-database
|
||||
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
[Pod]
|
||||
PodName=nexus
|
||||
PublishPort=9016:8081
|
||||
Reference in New Issue
Block a user