diff --git a/OmniTools/.env.example b/OmniTools/.env.example new file mode 100644 index 0000000..5889b0d --- /dev/null +++ b/OmniTools/.env.example @@ -0,0 +1,8 @@ +# OmniTools - Docker Compose Environment Variables + +# Docker image tag to use for the omni-tools container +# Find available tags at: https://hub.docker.com/r/iib0011/omni-tools/tags +OMNITOOLS_VERSION=latest + +# Host port to expose the web UI on +OMNITOOLS_PORT=8000 diff --git a/OmniTools/docker-compose.yaml b/OmniTools/docker-compose.yaml new file mode 100644 index 0000000..f505db1 --- /dev/null +++ b/OmniTools/docker-compose.yaml @@ -0,0 +1,19 @@ +services: + app: + image: iib0011/omni-tools:${OMNITOOLS_VERSION:-latest} + container_name: omnitools-app + security_opt: + - no-new-privileges:true + ports: + - ${OMNITOOLS_PORT:-8000}:80 + healthcheck: + test: ["CMD", "wget", "--spider", "-q", "http://localhost:80"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 10s + deploy: + resources: + limits: + memory: 512M + restart: unless-stopped \ No newline at end of file