Switch the compose example from local build to pulling the full registry path git.rtynski.pl/rtynski/hy2026, default the host port to 8075 and add a commented external ovh_net network.
32 lines
843 B
YAML
32 lines
843 B
YAML
name: tarninahub
|
|
|
|
services:
|
|
app:
|
|
image: tarninahub:0.0.1
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
APP_VERSION: 0.0.1
|
|
container_name: tarninahub
|
|
restart: unless-stopped
|
|
# RocksDB zapisuje do bind-mountu ./data; root upraszcza uprawnienia (MVP).
|
|
user: "0:0"
|
|
ports:
|
|
- "${TARNINAHUB_PORT:-8075}:8080"
|
|
environment:
|
|
ASPNETCORE_ENVIRONMENT: Production
|
|
ASPNETCORE_URLS: http://+:8080
|
|
SurrealDb__Namespace: hubmi
|
|
SurrealDb__Database: hubmi
|
|
SurrealDb__DataDirectory: data
|
|
volumes:
|
|
# Jedyny volumen aplikacji — trwałe dane (SurrealDB / RocksDB).
|
|
- ./data:/app/data
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-fsS", "http://localhost:8080/api/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|