From 7487f6eb0ed15e3c9529cab2a27eb556bf4f91c5 Mon Sep 17 00:00:00 2001 From: Ian Donaldson Date: Wed, 8 Apr 2026 14:33:46 -0600 Subject: [PATCH] No longer using host mode networking. Added encoding="utf-8" to strawberry router read_text for Windows compatibility --- ...{% if backend_uses_graphql %}strawberry_router.py{% endif %} | 2 +- ... deploy_as_executable %}docker-compose.yaml{% endif %}.jinja | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/template/{% if has_backend %}backend{% endif %}/src/backend_api/{% if backend_uses_graphql %}strawberry_router.py{% endif %} b/template/{% if has_backend %}backend{% endif %}/src/backend_api/{% if backend_uses_graphql %}strawberry_router.py{% endif %} index b81c113f1..941065acb 100644 --- a/template/{% if has_backend %}backend{% endif %}/src/backend_api/{% if backend_uses_graphql %}strawberry_router.py{% endif %} +++ b/template/{% if has_backend %}backend{% endif %}/src/backend_api/{% if backend_uses_graphql %}strawberry_router.py{% endif %} @@ -65,7 +65,7 @@ class CdnUrlNotFoundInHtmlError(Exception): def _get_graphiql_html_base() -> str: # separate for mocking - return (Path(strawberry.__file__).with_name("static") / "graphiql.html").read_text() + return (Path(strawberry.__file__).with_name("static") / "graphiql.html").read_text(encoding="utf-8") def generate_offline_graphiql_html() -> str: diff --git a/template/{% if not deploy_as_executable %}docker-compose.yaml{% endif %}.jinja b/template/{% if not deploy_as_executable %}docker-compose.yaml{% endif %}.jinja index fa0819b22..70a6041c9 100644 --- a/template/{% if not deploy_as_executable %}docker-compose.yaml{% endif %}.jinja +++ b/template/{% if not deploy_as_executable %}docker-compose.yaml{% endif %}.jinja @@ -14,7 +14,6 @@ services:{% endraw %}{% if has_backend %}{% raw %} volumes: - ./docker-compose-logs:/app/logs restart: unless-stopped - network_mode: host {% endraw %}{% endif %}{% raw %} frontend: build: