UPD: initial architecture
CI / quality (push) Waiting to run

This commit is contained in:
Uklonil
2026-07-27 10:23:50 +02:00
parent 63fc0e6771
commit 3aeaed0af2
108 changed files with 11103 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-beacon}
POSTGRES_USER: ${POSTGRES_USER:-beacon}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-beacon}
ports: ["5432:5432"]
volumes: ["postgres_data:/var/lib/postgresql/data"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 10
app:
build: .
environment:
APP_NAME: Beacon
APP_URL: http://localhost:3000
BETTER_AUTH_URL: http://localhost:3000
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:?Set BETTER_AUTH_SECRET in .env}
DATABASE_URL: postgresql://${POSTGRES_USER:-beacon}:${POSTGRES_PASSWORD:-beacon}@postgres:5432/${POSTGRES_DB:-beacon}
LOG_LEVEL: info
ports: ["3000:3000"]
depends_on:
postgres: { condition: service_healthy }
volumes:
postgres_data: