47 lines
1006 B
YAML
47 lines
1006 B
YAML
services:
|
|
|
|
terra-view:
|
|
build: .
|
|
container_name: terra-view
|
|
ports:
|
|
- "8001:8001"
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
- ENVIRONMENT=production
|
|
- 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:
|
|
build:
|
|
context: ../slmm
|
|
dockerfile: Dockerfile
|
|
container_name: slmm
|
|
network_mode: host
|
|
volumes:
|
|
- ../slmm/data:/app/data
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
- PORT=8100
|
|
- CORS_ORIGINS=*
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8100/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
data: |