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
/data/
/config/repositories.json
docker-compose.yml
*.db
*.sqlite
.env
+1 -1
View File
@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM python:3.14.7-slim
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:
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
-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