diff --git a/apps/nitter/config.json b/apps/nitter/config.json index 4e1543d7..3f5c4f16 100644 --- a/apps/nitter/config.json +++ b/apps/nitter/config.json @@ -2,6 +2,7 @@ "$schema": "../schema.json", "name": "Nitter", "available": true, + "exposable": true, "port": 8106, "id": "nitter", "tipi_version": 1, diff --git a/apps/nitter/docker-compose.yml b/apps/nitter/docker-compose.yml index 479cc285..f5a0fe7f 100644 --- a/apps/nitter/docker-compose.yml +++ b/apps/nitter/docker-compose.yml @@ -13,8 +13,20 @@ services: depends_on: - nitter-redis restart: unless-stopped + healthcheck: + test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080"] + interval: 1m + timeout: 3s + labels: + traefik.enable: ${APP_EXPOSED} + traefik.http.routers.nitter.rule: Host(`${APP_DOMAIN}`) + traefik.http.routers.nitter.entrypoints: websecure + traefik.http.routers.nitter.service: nitter + traefik.http.routers.nitter.tls.certresolver: myresolver + traefik.http.services.nitter.loadbalancer.server.port: 8080 + nitter-redis: - image: redis:6-alpine + image: redis:alpine container_name: nitter-redis networks: - tipi_main_network