# Copyright (C) 2023 Thien Tran # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. version: "3" services: nitter: image: zedeus/nitter:latest container_name: nitter restart: unless-stopped volumes: - ./nitter.conf:/src/nitter.conf:Z,ro networks: - nitter - redis depends_on: - redis healthcheck: test: wget -nv --tries=1 --spider http://127.0.0.1:8080/Jack/status/20 || exit 1 interval: 15s timeout: 5s retries: 2 user: "998:998" read_only: true security_opt: - no-new-privileges:true cap_drop: - ALL redis: image: redis:alpine container_name: redis restart: unless-stopped command: redis-server --save 60 1 --loglevel warning volumes: - redis:/data networks: - redis healthcheck: test: redis-cli ping interval: 15s timeout: 5s retries: 2 user: "999:1000" read_only: true security_opt: - no-new-privileges:true cap_drop: - ALL swag: image: ghcr.io/linuxserver/swag container_name: swag restart: unless-stopped environment: - PUID=1000 - PGID=1000 - URL=arcticfoxes.net - SUBDOMAINS=nitter - VALIDATION=http - EMAIL=contact@tommytran.io - ONLY_SUBDOMAINS=true volumes: - ./swag:/config:Z - /etc/localtime:/etc/localtime:ro ports: - 443:443 - 80:80 networks: - nitter security_opt: - no-new-privileges:true cap_add: - NET_ADMIN networks: nitter: redis: volumes: redis: