-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 1.18 KB
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (30 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# DCVP-стенд: приёмный сервер телеметрии T-BOX + синтетический клиент.
# Схема — из прошивки tsp_manager (см. ../firmware/tbox-power-and-redirect.md §C).
services:
dcvp-server:
build:
context: .
dockerfile: server/Dockerfile
image: dcvp-server:dev
container_name: dcvp-server
ports:
- "6504:6504"
- "6507:6507"
- "6553:6553"
volumes:
- ./certs:/app/certs:ro
- ./logs:/app/logs
# v1: обёртка §C.4 реверснута — GB/T 32960 (сессия на 6504/6507) + HTTPS-логи (6553).
# флаги: --ports, --log-port, --no-client-cert, --plaintext
command: ["--ports", "6504,6507", "--log-port", "6553"]
restart: unless-stopped
# синтетический клиент — по требованию: `docker compose run --rm fake-tbox`
fake-tbox:
image: dcvp-server:dev
depends_on: [dcvp-server]
volumes:
- ./certs:/app/certs:ro
- ./client:/app/client:ro
entrypoint: ["python", "-u", "/app/client/fake_tbox.py"]
command: ["--host", "dcvp-server", "--port", "6504", "--cycles", "3"]
profiles: ["tools"]