SHA256
Removed recommended compose file. Tweaked Dockerfile and docker-compose.override.yml.example
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user