1
0
mirror of https://github.com/ArcticFoxes-net/Nitter-Docker-Compose synced 2024-06-19 02:24:51 -04:00
Nitter-Docker-Compose/docker-compose.yml
Tommy 9ba154adb8
Add license notice
Signed-off-by: Tommy <contact@tommytran.io>
2023-12-06 23:15:17 -07:00

94 lines
2.0 KiB
YAML

# 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: