Ein Image (pfaedle + pmtiles + Python), zwei Container per compose: web (Port 8080) und updater (stündlich Fahrplan, beim ersten Start Kartenkacheln). install.sh installiert Docker und startet alles. systemd-Dienste entfernt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X48pE4bzjHej8w9HyZXCjb
22 lines
483 B
YAML
22 lines
483 B
YAML
services:
|
|
web:
|
|
build: .
|
|
image: trainpulse
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
env_file: .env
|
|
volumes:
|
|
- ./data:/data
|
|
|
|
# holt stündlich neue Fahrpläne (und beim ersten Start die Kartenkacheln)
|
|
updater:
|
|
build: .
|
|
image: trainpulse
|
|
depends_on: [web]
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
volumes:
|
|
- ./data:/data
|
|
command: ["sh", "-c", "while true; do python -m trainpulse.prepare; sleep 3600; done"]
|