first commit
This commit is contained in:
43
docker-compose.yml
Normal file
43
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user