chore: docker and git stuff

This commit is contained in:
serversdwn
2026-03-12 20:24:01 +00:00
parent 70ef43de11
commit 3a411d0a89
3 changed files with 20 additions and 30 deletions

3
.gitignore vendored
View File

@@ -210,6 +210,7 @@ __marimo__/
# SQLite database files # SQLite database files
*.db *.db
*.db-journal *.db-journal
data/ /data/
/data-dev/
.aider* .aider*
.aider* .aider*

View File

@@ -0,0 +1,18 @@
services:
terra-view:
image: terra-view-dev
build: .
ports:
- "1001:8001"
volumes:
- ./data-dev:/app/data
environment:
- ENVIRONMENT=development
- SLMM_BASE_URL=http://host.docker.internal:9100
slmm:
image: slmm-dev
volumes:
- ../slmm/data-dev:/app/data
environment:
- PORT=9100

View File

@@ -1,9 +1,7 @@
services: services:
# --- TERRA-VIEW PRODUCTION ---
terra-view: terra-view:
build: . build: .
container_name: terra-view
ports: ports:
- "8001:8001" - "8001:8001"
volumes: volumes:
@@ -24,36 +22,10 @@ services:
retries: 3 retries: 3
start_period: 40s start_period: 40s
# --- TERRA-VIEW DEVELOPMENT ---
terra-view-dev:
build: .
container_name: terra-view-dev
ports:
- "1001:8001"
volumes:
- ./data-dev:/app/data
environment:
- PYTHONUNBUFFERED=1
- ENVIRONMENT=development
- SLMM_BASE_URL=http://host.docker.internal:8100
restart: unless-stopped
depends_on:
- slmm
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# --- SLMM (Sound Level Meter Manager) ---
slmm: slmm:
build: build:
context: ../slmm context: ../slmm
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: slmm
network_mode: host network_mode: host
volumes: volumes:
- ../slmm/data:/app/data - ../slmm/data:/app/data
@@ -71,4 +43,3 @@ services:
volumes: volumes:
data: data:
data-dev: