chore(deps): update traccar/traccar docker tag to v6.12 (#4168)
This commit is contained in:
12
apps/traccar/6.12/conf/traccar.xml
Normal file
12
apps/traccar/6.12/conf/traccar.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
|
||||
<properties>
|
||||
|
||||
<!-- Documentation: https://www.traccar.org/configuration-file/ -->
|
||||
|
||||
<entry key='database.driver'>org.h2.Driver</entry>
|
||||
<entry key='database.url'>jdbc:h2:./data/database</entry>
|
||||
<entry key='database.user'>sa</entry>
|
||||
<entry key='database.password'></entry>
|
||||
|
||||
</properties>
|
||||
23
apps/traccar/6.12/data.yml
Normal file
23
apps/traccar/6.12/data.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "./data"
|
||||
edit: true
|
||||
envKey: TRACCAR_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
label:
|
||||
en: Data persistence path
|
||||
zh: 数据持久化路径
|
||||
required: true
|
||||
type: text
|
||||
- default: 8082
|
||||
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/traccar/6.12/docker-compose.yml
Normal file
19
apps/traccar/6.12/docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
networks:
|
||||
traccar-network:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
traccar:
|
||||
image: traccar/traccar:6.12
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- traccar-network
|
||||
hostname: traccar
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8082
|
||||
volumes:
|
||||
- ${TRACCAR_ROOT_PATH}/logs:/opt/traccar/logs:rw
|
||||
- ${TRACCAR_ROOT_PATH}/traccar.xml:/opt/traccar/conf/traccar.xml:ro
|
||||
12
apps/traccar/6.12/scripts/init.sh
Normal file
12
apps/traccar/6.12/scripts/init.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
cp conf/traccar.xml "${TRACCAR_ROOT_PATH}/traccar.xml"
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user