Add Unraid deployment template
This commit is contained in:
+10
-9
@@ -2,13 +2,13 @@ services:
|
||||
db:
|
||||
image: postgis/postgis:16-3.4
|
||||
environment:
|
||||
POSTGRES_DB: geointel
|
||||
POSTGRES_USER: geointel
|
||||
POSTGRES_PASSWORD: geointel
|
||||
POSTGRES_DB: ${GEOINTEL_POSTGRES_DB:-geointel}
|
||||
POSTGRES_USER: ${GEOINTEL_POSTGRES_USER:-geointel}
|
||||
POSTGRES_PASSWORD: ${GEOINTEL_POSTGRES_PASSWORD:-geointel}
|
||||
volumes:
|
||||
- geointel_postgis:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U geointel -d geointel"]
|
||||
test: ["CMD-SHELL", "pg_isready -U ${GEOINTEL_POSTGRES_USER:-geointel} -d ${GEOINTEL_POSTGRES_DB:-geointel}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
@@ -17,13 +17,14 @@ services:
|
||||
build:
|
||||
context: ./backend
|
||||
environment:
|
||||
DATABASE_URL: postgresql+psycopg://geointel:geointel@db:5432/geointel
|
||||
DATABASE_URL: postgresql+psycopg://${GEOINTEL_POSTGRES_USER:-geointel}:${GEOINTEL_POSTGRES_PASSWORD:-geointel}@db:5432/${GEOINTEL_POSTGRES_DB:-geointel}
|
||||
STORAGE_ROOT: /app/storage
|
||||
CORS_ORIGINS: http://localhost:1202,http://127.0.0.1:1202
|
||||
CORS_ORIGINS: ${GEOINTEL_CORS_ORIGINS:-http://localhost:1202,http://127.0.0.1:1202}
|
||||
MAX_UPLOAD_MB: ${GEOINTEL_MAX_UPLOAD_MB:-500}
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "${GEOINTEL_BACKEND_PORT:-8000}:8000"
|
||||
volumes:
|
||||
- ./storage:/app/storage
|
||||
- ${GEOINTEL_STORAGE_PATH:-./storage}:/app/storage
|
||||
- ./fixtures:/app/fixtures:ro
|
||||
command: sh /app/docker_start.sh
|
||||
depends_on:
|
||||
@@ -40,7 +41,7 @@ services:
|
||||
build:
|
||||
context: ./frontend
|
||||
ports:
|
||||
- "1202:80"
|
||||
- "${GEOINTEL_FRONTEND_PORT:-1202}:80"
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
|
||||
Reference in New Issue
Block a user