From 8cf746c979ad8a47817c7128e5460c053d6a1b75 Mon Sep 17 00:00:00 2001 From: Pearoo <63553775+rnxm@users.noreply.github.com> Date: Sat, 20 Sep 2025 14:46:10 +0200 Subject: [PATCH] fix docker running --- Dockerfile | 2 +- compose.yml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82b7593..12dd7ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.12-slim RUN pip install uv -WORKDIR /app +WORKDIR /bot COPY . . diff --git a/compose.yml b/compose.yml index 5df30b4..508e5a9 100644 --- a/compose.yml +++ b/compose.yml @@ -11,8 +11,9 @@ services: - "${DB_PORT:-5432}:5432" volumes: - ./first_time.sql:/docker-entrypoint-initdb.d/first_time.sql:ro + - postgres_data:/var/lib/postgresql/data - app: + bot: build: . depends_on: - db @@ -21,5 +22,7 @@ services: DB_PASSWORD: ${DB_PASSWORD} DB_PORT: ${DB_PORT:-5432} volumes: - - .:/app - command: uv run python -OO main.py + - .:/bot + +volumes: + postgres_data: \ No newline at end of file