Initial
This commit is contained in:
39
docker-compose.yml
Normal file
39
docker-compose.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
gps-router:
|
||||
build: .
|
||||
container_name: gps-logger-router
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
# Dawarich configuration (OPTIONAL - leave empty if not using)
|
||||
- DAWARICH_URL=
|
||||
- DAWARICH_TOKEN=
|
||||
|
||||
# Home Assistant configuration (REQUIRED)
|
||||
- HOMEASSISTANT_URL=https://your-homeassistant-instance.com
|
||||
- HOMEASSISTANT_TOKEN=your_homeassistant_long_lived_token
|
||||
- HA_DEVICE_TRACKER_ID=gps_logger_device
|
||||
|
||||
# Optional basic authentication
|
||||
- AUTH_USERNAME=
|
||||
- AUTH_PASSWORD=
|
||||
|
||||
# Server configuration
|
||||
- PORT=3000
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"wget",
|
||||
"--no-verbose",
|
||||
"--tries=1",
|
||||
"--spider",
|
||||
"http://localhost:3000/health",
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
Reference in New Issue
Block a user