first commit

This commit is contained in:
Alessio
2026-06-02 04:02:59 +02:00
parent 368f69fdce
commit 8e5f4aafa2
148 changed files with 10590 additions and 110 deletions

35
docker-compose.yml Normal file
View File

@@ -0,0 +1,35 @@
services:
app:
build: .
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-appspese}:${POSTGRES_PASSWORD:-change-me}@postgres:5432/${POSTGRES_DB:-appspese}
AVATAR_STORAGE_DIR: /data/avatars
ports:
- "${APP_PORT:-3000}:3000"
volumes:
- ./.data/avatars:/data/avatars
postgres:
image: postgres:17-alpine
restart: unless-stopped
ports:
- "${POSTGRES_PORT:-5432}:5432"
environment:
POSTGRES_DB: ${POSTGRES_DB:-appspese}
POSTGRES_USER: ${POSTGRES_USER:-appspese}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change-me}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-appspese} -d ${POSTGRES_DB:-appspese}"]
interval: 5s
timeout: 5s
retries: 10
volumes:
- postgres_data:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/001-init.sql:ro
volumes:
postgres_data: