23 lines
495 B
YAML
23 lines
495 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
api:
|
|
build: .
|
|
container_name: webmonitor-api
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5000:5000"
|
|
environment:
|
|
# Werte werden von Coolify oder deiner Umgebung gesetzt
|
|
DBHOST: ${DBHOST}
|
|
DBUSER: ${DBUSER}
|
|
DBPASS: ${DBPASS}
|
|
DBNAME: ${DBNAME}
|
|
DBPORT: ${DBPORT}
|
|
PORT: 5000
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5000/healthz"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|