SHA256
Removed recommended compose file. Tweaked Dockerfile and docker-compose.override.yml.example
This commit is contained in:
@@ -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
@@ -1,4 +1,4 @@
|
|||||||
FROM python:3.11-slim
|
FROM python:3.14.7-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user