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