Add Unraid deployment template
This commit is contained in:
@@ -41,15 +41,18 @@ def test_compose_does_not_require_missing_root_env_file() -> None:
|
||||
compose = (ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
||||
|
||||
assert "env_file:" not in compose
|
||||
assert "DATABASE_URL: postgresql+psycopg://geointel:geointel@db:5432/geointel" in compose
|
||||
assert "DATABASE_URL: postgresql+psycopg://${GEOINTEL_POSTGRES_USER:-geointel}" in compose
|
||||
|
||||
|
||||
def test_compose_exposes_frontend_on_host_port_1202_with_cors_origin() -> None:
|
||||
def test_compose_exposes_frontend_on_configurable_host_port_with_cors_origin() -> None:
|
||||
compose = (ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
||||
env_example = (ROOT / ".env.example").read_text(encoding="utf-8")
|
||||
|
||||
assert '"1202:80"' in compose
|
||||
assert "CORS_ORIGINS: http://localhost:1202,http://127.0.0.1:1202" in compose
|
||||
assert '"${GEOINTEL_FRONTEND_PORT:-1202}:80"' in compose
|
||||
assert '"${GEOINTEL_BACKEND_PORT:-8000}:8000"' in compose
|
||||
assert "CORS_ORIGINS: ${GEOINTEL_CORS_ORIGINS:-http://localhost:1202,http://127.0.0.1:1202}" in compose
|
||||
assert "GEOINTEL_FRONTEND_PORT=1202" in env_example
|
||||
assert "GEOINTEL_BACKEND_PORT=8000" in env_example
|
||||
assert "http://localhost:1202" in env_example
|
||||
assert "http://127.0.0.1:1202" in env_example
|
||||
|
||||
@@ -92,7 +95,7 @@ def test_compose_does_not_publish_postgis_on_default_host_port() -> None:
|
||||
def test_compose_waits_for_healthy_database_and_applies_migrations() -> None:
|
||||
compose = (ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
||||
|
||||
assert "pg_isready -U geointel -d geointel" in compose
|
||||
assert "pg_isready -U ${GEOINTEL_POSTGRES_USER:-geointel} -d ${GEOINTEL_POSTGRES_DB:-geointel}" in compose
|
||||
assert "condition: service_healthy" in compose
|
||||
assert "sh /app/docker_start.sh" in compose
|
||||
|
||||
|
||||
Reference in New Issue
Block a user