37 lines
817 B
YAML
37 lines
817 B
YAML
services:
|
|
postgis:
|
|
image: postgis/postgis:16-3.4
|
|
environment:
|
|
POSTGRES_USER: radio
|
|
POSTGRES_PASSWORD: radio
|
|
POSTGRES_DB: radio
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgis_data:/var/lib/postgresql/data
|
|
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U radio -d radio"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
app:
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
DATABASE_URL: postgresql://radio:radio@postgis:5432/radio
|
|
SRTM_PATH: /data/srtm
|
|
CANOPY_PATH: /data/canopy
|
|
SAMPLE_STEP_M: "30"
|
|
MAX_GRID_POINTS: "10000"
|
|
volumes:
|
|
- ./data:/data:ro
|
|
depends_on:
|
|
postgis:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
postgis_data:
|