- 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.
14 lines
526 B
YAML
14 lines
526 B
YAML
services:
|
|
gateway:
|
|
image: git.shts.su/denozord/telemt-api:latest
|
|
# Локальная сборка с Web UI внутри образа: build: . и image: telemt-api-gateway:local
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./config.compose.yaml:/etc/telemt-gateway/config.yaml:ro
|
|
environment:
|
|
CONFIG_PATH: /etc/telemt-gateway/config.yaml
|
|
# Доступ к Telemt на хосте Linux (host.docker.internal в config.compose.yaml):
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|