Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosalmi authored Aug 31, 2024
1 parent a9ee61b commit 0188024
Showing 1 changed file with 12 additions and 41 deletions.
53 changes: 12 additions & 41 deletions lxc_autoscale/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,17 @@ services:
lxc-autoscale:
image: lxc-autoscale # Ensure that this image is built locally or available on a registry
container_name: lxc-autoscale
environment:
POLL_INTERVAL: 300
CPU_UPPER_THRESHOLD: 80
CPU_LOWER_THRESHOLD: 20
MEMORY_UPPER_THRESHOLD: 80
MEMORY_LOWER_THRESHOLD: 20
CORE_MIN_INCREMENT: 1
CORE_MAX_INCREMENT: 4
MIN_CORES: 1
MAX_CORES: 8
MIN_MEMORY: 512
MIN_DECREASE_CHUNK: 512
RESERVE_CPU_PERCENT: 10
RESERVE_MEMORY_MB: 2048
LOG_FILE: '/var/log/lxc_autoscale/lxc_autoscale.log'
LOCK_FILE: '/var/lock/lxc_autoscale/lxc_autoscale.lock'
BACKUP_DIR: '/var/lib/lxc_autoscale/backups'
OFF_PEAK_START: 22
OFF_PEAK_END: 6
ENERGY_MODE: 'False'
GOTIFY_URL: ''
GOTIFY_TOKEN: ''
IGNORE_LXC: ''
BEHAVIOUR: 'normal'
SMTP_SERVER: ''
SMTP_PORT: 587
SMTP_USERNAME: ''
SMTP_PASSWORD: ''
SMTP_FROM: ''
SMTP_TO: ''
UPTIME_KUMA_WEBHOOK_URL: ''
USE_REMOTE_PROXMOX: 'True'
PROXMOX_HOST: 'proxmox.homelab.me'
SSH_PORT: 22
SSH_USER: 'root'
SSH_PASSWORD: 'weak-password' # Consider using Docker secrets for sensitive data
SSH_KEY_PATH: ''
env_file:
- .env # Use the .env file for environment variables
volumes:
- /var/log/lxc_autoscale:/var/log/lxc_autoscale # Ensure this directory is specific to your app
- /var/lock/lxc_autoscale:/var/lock/lxc_autoscale # Ensure this directory is specific to your app
- /var/lib/lxc_autoscale:/var/lib/lxc_autoscale
- /usr/local/bin:/usr/local/bin # Map /usr/local/bin for your scripts and binaries
- log_data:/var/log/lxc_autoscale # Docker volume for logs
- lock_data:/var/lock/lxc_autoscale # Docker volume for lock files
- backup_data:/var/lib/lxc_autoscale # Docker volume for backups
- local_bin:/usr/local/bin # Docker volume for scripts and binaries
restart: unless-stopped

volumes:
log_data:
lock_data:
backup_data:
local_bin:

0 comments on commit 0188024

Please sign in to comment.