first commit

This commit is contained in:
2026-06-23 09:15:33 +03:00
parent f6c7db328f
commit 47e8fb3f87
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -5,3 +5,7 @@ DEM_PATH=/data/dem
LANDCOVER_PATH=/data/landcover LANDCOVER_PATH=/data/landcover
CANOPY_PATH=/data/canopy CANOPY_PATH=/data/canopy
API_V1_PREFIX=/api/v1 API_V1_PREFIX=/api/v1
POSTGIS_PORT=5432
REDIS_PORT=6379
API_PORT=8000
TILER_PORT=8001
+4 -4
View File
@@ -8,12 +8,12 @@ services:
volumes: volumes:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
ports: ports:
- "5432:5432" - "${POSTGIS_PORT:-5432}:5432"
redis: redis:
image: redis:7-alpine image: redis:7-alpine
ports: ports:
- "6379:6379" - "${REDIS_PORT:-6379}:6379"
api: api:
build: ./api build: ./api
@@ -24,7 +24,7 @@ services:
volumes: volumes:
- ./data:/data:ro - ./data:/data:ro
ports: ports:
- "8000:8000" - "${API_PORT:-8000}:8000"
command: gunicorn app.main:app -k uvicorn.workers.UvicornWorker -w 4 -b 0.0.0.0:8000 command: gunicorn app.main:app -k uvicorn.workers.UvicornWorker -w 4 -b 0.0.0.0:8000
worker: worker:
@@ -42,7 +42,7 @@ services:
profiles: profiles:
- tiler - tiler
ports: ports:
- "8001:8000" - "${TILER_PORT:-8001}:8000"
volumes: volumes:
- ./data:/data:ro - ./data:/data:ro