Portal server mode for Dokploy: Dockerfile, PORTAL_URLS, PORTAL_SERVER

The results Portal in a Linux container (python 3.13-slim + ODBC Driver
18). PORTAL_SERVER=1: no Start / Stop (the bot runs on the Windows PC).
PORTAL_URLS: allowed hosts / origins, Secure cookie when all https.
RESULTS_DB_CONN (a SQL login) goes in Dokploy's environment, never here.
71 test files, 1222 tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ManikandanandClaude Opus 5.5 committed 2026-10-27 14:05:14 +05:30
1 parent ce9bdbd974
commit c049cece23
9 files changed
+163 -13

No files matched your search

+4 -1
View File
@@ -21,7 +21,10 @@ import os
import time
import json
import ctypes
from ctypes import wintypes
try:
from ctypes import wintypes
except ValueError: # some non-Windows Pythons; the server Portal
wintypes = None # (PORTAL_SERVER=1) never calls the kernel32 parts
from datetime import datetime, timedelta
from .. import settings as cfg