832 B
SWAG reverse-proxy integration
The production Compose stack joins its nginx service to the existing external
Docker network named by SWAG_NETWORK (default: swagnet). SWAG terminates TLS
and proxies the public hostname to nginx:80; the application nginx container
serves the React build and forwards /api/ to the private API service.
Copy app.subdomain.conf.sample into the SWAG nginx/proxy-confs/ directory,
replace the placeholder domain settings using normal SWAG conventions, and
restart or reload SWAG. The exact SWAG filesystem location is a server concern
and is intentionally not encoded in this repository.
Do not expose MySQL publicly. The loopback API and frontend port mappings exist for server-local health diagnostics; SWAG should reach the frontend by Docker service name over the external network.