chore(deps): update sonatype/nexus3 docker tag to v3.90.1 (localApps) (#4384)
This commit is contained in:
23
apps/nexus3/3.90.1/data.yml
Normal file
23
apps/nexus3/3.90.1/data.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "./data"
|
||||
edit: true
|
||||
envKey: NEXUS3_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
label:
|
||||
en: Data persistence path
|
||||
zh: 数据持久化路径
|
||||
required: true
|
||||
type: text
|
||||
- default: 8081
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
label:
|
||||
en: WebUI port
|
||||
zh: WebUI 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
19
apps/nexus3/3.90.1/docker-compose.yml
Normal file
19
apps/nexus3/3.90.1/docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
nexus3:
|
||||
image: sonatype/nexus3:3.90.1
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8081
|
||||
volumes:
|
||||
- ${NEXUS3_ROOT_PATH}/data:/nexus-data
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
16
apps/nexus3/3.90.1/scripts/init.sh
Normal file
16
apps/nexus3/3.90.1/scripts/init.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
mkdir -p "$NEXUS3_ROOT_PATH"
|
||||
mkdir -p "$NEXUS3_ROOT_PATH/data"
|
||||
|
||||
chown -R 200:0 "$NEXUS3_ROOT_PATH"
|
||||
chown -R 200:0 "$NEXUS3_ROOT_PATH/data"
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user