From ca27a2b3f07dfd6327ef436cbd3d299850e9e427 Mon Sep 17 00:00:00 2001
From: Andrey Kondratev <81143241+cockroach-eater@users.noreply.github.com>
Date: Fri, 7 Nov 2025 21:12:49 +0500
Subject: [PATCH] 100!
---
docker-compose.local.yml | 50 ++++++++++++++++++++++++++++++++++++++++
public/index.html | 9 ++++----
src/server.ts | 14 +++++------
3 files changed, 62 insertions(+), 11 deletions(-)
create mode 100644 docker-compose.local.yml
diff --git a/docker-compose.local.yml b/docker-compose.local.yml
new file mode 100644
index 0000000..b494a2f
--- /dev/null
+++ b/docker-compose.local.yml
@@ -0,0 +1,50 @@
+services:
+ postgres:
+ image: postgres:15-alpine
+ container_name: quixotic-postgres
+ restart: unless-stopped
+ environment:
+ POSTGRES_DB: quixotic
+ POSTGRES_USER: quixotic
+ POSTGRES_PASSWORD: quixotic123
+ volumes:
+ - postgres-data:/var/lib/postgresql/data
+ - ./database/init:/docker-entrypoint-initdb.d
+ networks:
+ - quixotic
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U quixotic"]
+ interval: 5s
+ timeout: 5s
+ retries: 5
+
+ quixotic-app:
+ build:
+ context: .
+ dockerfile: Dockerfile
+ container_name: quixotic-app
+ restart: unless-stopped
+ environment:
+ NODE_ENV: production
+ PORT: 3000
+ DATABASE_URL: postgresql://quixotic:quixotic123@postgres:5432/quixotic
+ DATABASE_SSL: false
+ TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:-}
+ WEB_APP_URL: http://localhost:3000
+ volumes:
+ - downloads:/app/downloads
+ ports:
+ - "3000:3000"
+ depends_on:
+ postgres:
+ condition: service_healthy
+ networks:
+ - quixotic
+
+volumes:
+ downloads:
+ postgres-data:
+
+networks:
+ quixotic:
+ driver: bridge
diff --git a/public/index.html b/public/index.html
index 22e9193..06af595 100644
--- a/public/index.html
+++ b/public/index.html
@@ -60,11 +60,12 @@
-
-
+
+
+
@@ -106,6 +107,6 @@
-
+