2022-07-28 17:46:12 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
nitter:
|
|
|
|
image: zedeus/nitter:latest
|
|
|
|
container_name: nitter
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
ports:
|
|
|
|
- ${APP_PORT}:8080
|
|
|
|
volumes:
|
|
|
|
- "${APP_DATA_DIR}/data/nitter.conf:/src/nitter.conf:ro"
|
|
|
|
depends_on:
|
|
|
|
- nitter-redis
|
|
|
|
restart: unless-stopped
|
2022-09-09 15:04:50 +00:00
|
|
|
healthcheck:
|
2023-06-12 19:58:59 +00:00
|
|
|
test:
|
|
|
|
[
|
|
|
|
"CMD",
|
|
|
|
"wget",
|
|
|
|
"--no-verbose",
|
|
|
|
"--tries=1",
|
|
|
|
"--spider",
|
|
|
|
"http://localhost:8080",
|
|
|
|
]
|
2022-09-09 15:04:50 +00:00
|
|
|
interval: 1m
|
|
|
|
timeout: 3s
|
|
|
|
labels:
|
2023-06-12 19:58:59 +00:00
|
|
|
# Main
|
|
|
|
traefik.enable: true
|
|
|
|
traefik.http.middlewares.nitter-web-redirect.redirectscheme.scheme: https
|
|
|
|
traefik.http.services.nitter.loadbalancer.server.port: 8080
|
|
|
|
# Web
|
|
|
|
traefik.http.routers.nitter-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.nitter-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.nitter-insecure.service: nitter
|
|
|
|
traefik.http.routers.nitter-insecure.middlewares: nitter-web-redirect
|
|
|
|
# Websecure
|
2022-09-09 15:04:50 +00:00
|
|
|
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
|
2023-06-12 19:58:59 +00:00
|
|
|
# Local domain
|
|
|
|
traefik.http.routers.nitter-local-insecure.rule: Host(`nitter.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.nitter-local-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.nitter-local-insecure.service: nitter
|
|
|
|
traefik.http.routers.nitter-local-insecure.middlewares: nitter-web-redirect
|
|
|
|
# Local domain secure
|
|
|
|
traefik.http.routers.nitter-local.rule: Host(`nitter.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.nitter-local.entrypoints: websecure
|
|
|
|
traefik.http.routers.nitter-local.service: nitter
|
|
|
|
traefik.http.routers.nitter-local.tls: true
|
2022-09-09 15:04:50 +00:00
|
|
|
|
2022-07-28 17:46:12 +00:00
|
|
|
nitter-redis:
|
2022-09-09 15:04:50 +00:00
|
|
|
image: redis:alpine
|
2022-07-28 17:46:12 +00:00
|
|
|
container_name: nitter-redis
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
command: redis-server --save 60 1 --loglevel warning
|
|
|
|
volumes:
|
|
|
|
- "${APP_DATA_DIR}/data/redis:/data"
|
2023-06-12 19:58:59 +00:00
|
|
|
restart: unless-stopped
|