first commit

This commit is contained in:
Vlastislav Svatek
2026-04-26 02:23:11 +02:00
commit 153c83f7fa
31 changed files with 3804 additions and 0 deletions

43
docker-compose.yml Normal file
View File

@@ -0,0 +1,43 @@
services:
app:
build: .
image: naughtybulldogs-rating:latest
restart: unless-stopped
ports:
- "${APP_PORT:-8080}:80"
env_file:
- .env
environment:
DB_HOST: postgres
depends_on:
postgres:
condition: service_healthy
volumes:
- cache:/tmp/snb_cache
postgres:
image: postgres:16-alpine
restart: unless-stopped
env_file:
- .env
environment:
POSTGRES_DB: ${DB_NAME:-streamers_db}
POSTGRES_USER: ${DB_USER:-streamers_user}
POSTGRES_PASSWORD: ${DB_PASS:-changeme}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-streamers_user} -d ${DB_NAME:-streamers_db}"]
interval: 5s
timeout: 5s
retries: 10
# Poznámky k nasazení:
# - Standalone: APP_PORT=8080 v .env, přístup přes http://host:8080
# - Synology Web Station reverse proxy: APP_PORT=8080, reverse proxy na localhost:8080
# - Traefik / jiný proxy: stejně APP_PORT nastav, proxy směruj na daný port
volumes:
pgdata:
cache: