diff --git a/.gitignore b/.gitignore index 98f879d..6b68276 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ env/ # Project-specific /data/ /config/repositories.json +docker-compose.yml *.db *.sqlite .env diff --git a/Dockerfile b/Dockerfile index b0e1112..ecc8f7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim +FROM python:3.14.7-slim WORKDIR /app diff --git a/docker-compose.override.yml.example b/docker-compose.override.yml.example index 7da857e..0134547 100644 --- a/docker-compose.override.yml.example +++ b/docker-compose.override.yml.example @@ -1,27 +1,17 @@ -# Optional override file for local development -# Copy to docker-compose.override.yml and customize - services: markmywords: - # Enable debug mode - environment: - FLASK_ENV: development - FLASK_DEBUG: 1 - - # Mount SSH keys for private repositories + build: . + container_name: markmywords + expose: + - 5000 volumes: - - ~/.ssh:/root/.ssh:ro - - # Port forwarding examples - # ports: - # - "8080:5000" # Different external port - - # Additional resource limits - # deploy: - # resources: - # limits: - # cpus: '0.5' - # memory: 512M - # reservations: - # cpus: '0.25' - # memory: 256M + # Configuration directory with repositories.json + - ./config:/config:rw + # Data directory for cloned repositories and search index + - ./data:/data:rw + environment: + # Set Flask environment + FLASK_ENV: production + # Python unbuffered output for real-time logs + PYTHONUNBUFFERED: 1 + restart: unless-stopped diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 0e1ab04..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -services: - markmywords: - build: . - container_name: markmywords - ports: - - "5000:5000" - volumes: - # Configuration directory with repositories.json - - ./config:/config:rw - # Data directory for cloned repositories and search index - - ./data:/data:rw - environment: - # Set Flask environment - FLASK_ENV: production - # Python unbuffered output for real-time logs - PYTHONUNBUFFERED: 1 - restart: unless-stopped