Removed recommended compose file. Tweaked Dockerfile and docker-compose.override.yml.example

This commit is contained in:
Discsearcher
2026-08-17 12:30:03 -04:00
parent 41c4752555
commit 2dc05e72d4
4 changed files with 16 additions and 42 deletions
+1
View File
@@ -36,6 +36,7 @@ env/
# Project-specific # Project-specific
/data/ /data/
/config/repositories.json /config/repositories.json
docker-compose.yml
*.db *.db
*.sqlite *.sqlite
.env .env
+1 -1
View File
@@ -1,4 +1,4 @@
FROM python:3.11-slim FROM python:3.14.7-slim
WORKDIR /app WORKDIR /app
+14 -24
View File
@@ -1,27 +1,17 @@
# Optional override file for local development
# Copy to docker-compose.override.yml and customize
services: services:
markmywords: markmywords:
# Enable debug mode build: .
environment: container_name: markmywords
FLASK_ENV: development expose:
FLASK_DEBUG: 1 - 5000
# Mount SSH keys for private repositories
volumes: volumes:
- ~/.ssh:/root/.ssh:ro # Configuration directory with repositories.json
- ./config:/config:rw
# Port forwarding examples # Data directory for cloned repositories and search index
# ports: - ./data:/data:rw
# - "8080:5000" # Different external port environment:
# Set Flask environment
# Additional resource limits FLASK_ENV: production
# deploy: # Python unbuffered output for real-time logs
# resources: PYTHONUNBUFFERED: 1
# limits: restart: unless-stopped
# cpus: '0.5'
# memory: 512M
# reservations:
# cpus: '0.25'
# memory: 256M
-17
View File
@@ -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