From 14f1a5eb8f185d8f42726bdcf507636a90054714 Mon Sep 17 00:00:00 2001 From: fab Date: Sat, 31 Aug 2024 10:28:17 +0200 Subject: [PATCH] Create docker-compose.yml --- lxc_autoscale/docker-compose.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lxc_autoscale/docker-compose.yml diff --git a/lxc_autoscale/docker-compose.yml b/lxc_autoscale/docker-compose.yml new file mode 100644 index 0000000..29f4797 --- /dev/null +++ b/lxc_autoscale/docker-compose.yml @@ -0,0 +1,20 @@ +version: '3.8' + +services: + lxc-autoscale: + image: lxc-autoscale # Ensure that this image is built locally or available on a registry + container_name: lxc-autoscale + env_file: + - .env # Use the .env file for environment variables + volumes: + - 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: