Refactor Docker setup to integrate Web UI and streamline configuration
Publish telemt-api gateway Docker image / test (push) Successful in 23s
Publish telemt-api gateway Docker image / build-and-push (push) Successful in 1m54s

- Updated Dockerfile to build and embed the SvelteKit Web UI directly into the gateway image, eliminating the need for a separate web service.
- Modified .dockerignore to exclude unnecessary directories related to the web service.
- Adjusted config.compose.yaml to remove CORS settings for the web service, as the UI now shares the same origin as the API.
- Enhanced README.md to reflect the new single-port architecture for accessing both the Web UI and API.
- Removed the standalone web Dockerfile and updated related documentation for local development and build processes.
This commit is contained in:
Denozordec
2026-03-30 10:42:28 +07:00
parent 6421a9b28d
commit d69849e5e2
15 changed files with 182 additions and 75 deletions
+1 -10
View File
@@ -1,16 +1,7 @@
services:
web:
build:
context: ./web
dockerfile: Dockerfile
args:
# URL шлюза в браузере (встраивается при сборке)
PUBLIC_TELEMT_GATEWAY_URL: http://127.0.0.1:8080
ports:
- "4173:4173"
gateway:
image: git.shts.su/denozord/telemt-api:latest
# Локальная сборка вместо pull: укажите build: . и image: telemt-api-gateway:local
# Локальная сборка с Web UI внутри образа: build: . и image: telemt-api-gateway:local
ports:
- "8080:8080"
volumes: