Files
telemt-api/docker-compose.yml
T
Denozordec ef98560e9f
Publish telemt-api gateway Docker image / test (push) Successful in 24s
Publish telemt-api gateway Docker image / build-and-push (push) Successful in 1m18s
Add CORS support and Docker configuration for web service
- Added CORS allowed origins in config.compose.yaml to enable cross-origin requests from the web service.
- Updated docker-compose.yml to include a new web service with build context and port mapping for local development.
- Enhanced gateway.go to support additional HTTP methods in CORS responses.
- Updated README.md to document the new web service and its configuration requirements.
2026-03-30 10:31:10 +07:00

23 lines
783 B
YAML

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
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"