diff --git a/it-tools/.env-example b/it-tools/.env-example new file mode 100644 index 0000000..21b0a6d --- /dev/null +++ b/it-tools/.env-example @@ -0,0 +1,5 @@ +# IT-Tools Version (Standard: latest) +ITTOOLS_VERSION=latest + +# IT-Tools Domain +ITTOOLS_DOMAIN=it-tools.example.com \ No newline at end of file diff --git a/it-tools/README.md b/it-tools/README.md new file mode 100644 index 0000000..0bf49c9 --- /dev/null +++ b/it-tools/README.md @@ -0,0 +1,27 @@ +# IT-Tools Docker Deployment + +This repository provides a `docker-compose` configuration for deploying the IT-Tools container, which is accessible via Traefik as a reverse proxy. + +## Prerequisites +- Docker and Docker Compose must be installed +- Traefik must be set up as a reverse proxy + +## Installation + +1. **Configure the `.env` file** +Rename the `.env-example` file to `.env` and update the file with your specific values. This file contains environment variables used by the Traefik service. + +```bash +mv .env-example .env +``` +Modify the .env file +``` + +2. **Start Docker-Compose** + + ```sh + docker-compose up -d + ``` + +## Access +Once the container is running, IT-Tools will be available at the configured domain. \ No newline at end of file diff --git a/it-tools/docker-compose.yml b/it-tools/docker-compose.yml new file mode 100644 index 0000000..8a74ed3 --- /dev/null +++ b/it-tools/docker-compose.yml @@ -0,0 +1,20 @@ +--- +services: + it-tools: + image: corentinth/it-tools:${ITTOOLS_VERSION:-latest} + container_name: it-tools + restart: unless-stopped + networks: + - traefik + labels: + - "traefik.enable=true" + - "traefik.docker.network=traefik" + - "traefik.http.routers.it-tools.entrypoints=http" + - "traefik.http.routers.it-tools.rule=Host(`${ITTOOLS_DOMAIN:?error}`)" + - "traefik.http.middlewares.it-tools-https-redirect.redirectscheme.schem> + - "traefik.http.routers.it-tools.middlewares=it-tools-https-redirect" + - "traefik.http.routers.it-tools-secure.entrypoints=https" + - "traefik.http.routers.it-tools-secure.rule=Host(`${ITTOOLS_DOMAIN:?error}`)" + - "traefik.http.routers.it-tools-secure.tls=true" + - "traefik.http.routers.it-tools-secure.service=it-tools" + - "traefik.http.services.it-tools.loadbalancer.server.port=80" \ No newline at end of file