-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.05 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
32
33
34
35
36
37
38
version: '3.8'
services:
echo-server:
build:
context: .
dockerfile: Dockerfile
container_name: echo-server
ports:
- "8080:8080"
- "8443:8443"
environment:
- PORT=8080
- TLS_ENABLED=true
- TLS_PORT=8443
- LOG_HEALTHCHECKS=false
- ECHO_PAGE_TITLE=Echo Server (Docker Compose)
# Uncomment to customize JWT header detection
# - JWT_HEADER_NAMES=Authorization,X-JWT-Token,X-Auth-Token
# Uncomment to display specific environment variables
# - ECHO_ENVIRONMENT_VARIABLES_DISPLAY=PATH,HOME,USER
volumes:
# Mount custom certificates if you have them
# - ./certs:/certs:ro
- /dev/null:/certs/tls.crt:ro # Placeholder to trigger self-signed cert generation
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/healthz/live"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- echo-network
networks:
echo-network:
driver: bridge