mirror of
https://github.com/TrustTunnel/TrustTunnel.git
synced 2026-04-28 03:39:53 +00:00
Squashed commit of the following:
commit 16a0c416f13fc32db3ae79ba7f0886ba3987f5aa
Author: Radmir Sadikov <r.sadikov@adguard.com>
Date: Thu Mar 5 12:01:45 2026 +0400
move healthcheck from Dockerfile to docker-compose.yml
commit 54aeb8d824
Author: Radmir Sadikov <r.sadikov@adguard.com>
Date: Wed Mar 4 15:50:26 2026 +0400
add port parameter for healthcheck
commit 0e375b9628
Author: Radmir Sadikov <r.sadikov@adguard.com>
Date: Tue Mar 3 17:47:27 2026 +0400
feat vpn-libs-endpoint: improve docker support for trusttunnel
29 lines
865 B
YAML
29 lines
865 B
YAML
services:
|
|
trusttunnel-endpoint:
|
|
build:
|
|
context: .
|
|
target: trusttunnel-endpoint
|
|
image: trusttunnel-endpoint:local
|
|
container_name: trusttunnel-endpoint
|
|
restart: unless-stopped
|
|
ports:
|
|
- "443:8443/tcp"
|
|
- "443:8443/udp"
|
|
# Required for Let's Encrypt HTTP-01 challenge (TT_CERT_TYPE=letsencrypt).
|
|
# Remove this port if you do not issue/renew LE certificates in-container.
|
|
- "80:80/tcp"
|
|
environment:
|
|
# Override if endpoint listens on a non-default container port.
|
|
- TT_HEALTHCHECK_PORT=8443
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "ss -ltn | grep -q ':${TT_HEALTHCHECK_PORT:-8443} '"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
start_period: 20s
|
|
retries: 3
|
|
volumes:
|
|
- trusttunnel_endpoint_data:/trusttunnel_endpoint
|
|
|
|
volumes:
|
|
trusttunnel_endpoint_data:
|
|
driver: local
|