33 lines
894 B
YAML
33 lines
894 B
YAML
services:
|
|
shooting-event:
|
|
container_name: shooting-event
|
|
image: ${IMAGE:-repo.ssp-itinfra.com/admin/shooting-event:amd64-latest}
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${APP_PORT:-8080}:8080"
|
|
environment:
|
|
PORT: "8080"
|
|
DB_PATH: /app/data/shooting.db
|
|
WEB_DIR: /app/web
|
|
ADMIN_USER: ${ADMIN_USER:-datwyler}
|
|
ADMIN_PASS: ${ADMIN_PASS:-datwyler}
|
|
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
|
|
GEMINI_MODEL: ${GEMINI_MODEL:-gemini-2.0-flash}
|
|
volumes:
|
|
- shooting_event_data:/app/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/api/health >/dev/null 2>&1 || exit 1"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 15s
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
volumes:
|
|
shooting_event_data:
|
|
name: shooting_event_data
|