diff --git a/IT-Tools/.env.example b/IT-Tools/.env.example index 3776064..7351940 100644 --- a/IT-Tools/.env.example +++ b/IT-Tools/.env.example @@ -1,2 +1,7 @@ -# Main interface port for accessing the application -IT_TOOLS_PORT="8000" \ No newline at end of file +# IT-Tools Docker Compose Environment Variables + +# Container image version tag (e.g. "latest" or a specific release tag) +IT-TOOLS_VERSION=latest + +# Host port to expose the IT-Tools web UI on +IT-TOOLS_PORT=8000 diff --git a/IT-Tools/docker-compose.yaml b/IT-Tools/docker-compose.yaml index 3b8b87a..37027be 100644 --- a/IT-Tools/docker-compose.yaml +++ b/IT-Tools/docker-compose.yaml @@ -1,17 +1,17 @@ services: app: - image: corentinth/it-tools:latest - container_name: it-tools + image: corentinth/it-tools:${IT-TOOLS_VERSION:-latest} + container_name: it-tools-app ports: - - ${IT_TOOLS_PORT}:80 - deploy: - resources: - limits: - memory: 512m + - ${IT-TOOLS_PORT:-8000}:80 healthcheck: test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1/ || exit 1"] interval: 30s timeout: 10s retries: 3 start_period: 15s + deploy: + resources: + limits: + memory: 512m restart: unless-stopped \ No newline at end of file