-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathcompose.yml
More file actions
34 lines (33 loc) · 1.14 KB
/
Copy pathcompose.yml
File metadata and controls
34 lines (33 loc) · 1.14 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
name: tournament-assistant
services:
tournament-assistant-server:
build:
context: .
dockerfile: TournamentAssistantServer/Dockerfile
image: tournament-assistant-server:${TA_VERSION:-local}
container_name: tournament-assistant-server
init: true
restart: unless-stopped
stop_grace_period: 20s
environment:
ASPNETCORE_ENVIRONMENT: Production
DOTNET_EnableDiagnostics: "0"
ports:
# Raw TLS game-client traffic. Never place this behind an HTTP proxy.
- "${TA_RAW_BIND:-0.0.0.0}:${TA_RAW_PORT:-8675}:8675"
# Bind these to 127.0.0.1 when a reverse proxy terminates HTTPS/WSS.
- "${TA_WEBSOCKET_BIND:-127.0.0.1}:${TA_WEBSOCKET_PORT:-8676}:8676"
- "${TA_API_BIND:-127.0.0.1}:${TA_API_PORT:-8678}:8678"
# OAuth is disabled by the generated config; this mapping is loopback-only.
- "${TA_OAUTH_BIND:-127.0.0.1}:${TA_OAUTH_PORT:-8677}:8677"
volumes:
- type: bind
source: ./deployment/files
target: /app/files
security_opt:
- no-new-privileges:true
logging:
driver: local
options:
max-size: 20m
max-file: "5"