first init
This commit is contained in:
parent
87af5c350a
commit
d992729886
3 changed files with 52 additions and 0 deletions
5
it-tools/.env-example
Normal file
5
it-tools/.env-example
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# IT-Tools Version (Standard: latest)
|
||||||
|
ITTOOLS_VERSION=latest
|
||||||
|
|
||||||
|
# IT-Tools Domain
|
||||||
|
ITTOOLS_DOMAIN=it-tools.example.com
|
27
it-tools/README.md
Normal file
27
it-tools/README.md
Normal file
|
@ -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.
|
20
it-tools/docker-compose.yml
Normal file
20
it-tools/docker-compose.yml
Normal file
|
@ -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"
|
Loading…
Add table
Reference in a new issue