docker-compose environment for the entire v.st system https://v.st/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
env/nitter.yaml

44 lines
1.1 KiB

version: "3"
services:
nitter:
# image: zedeus/nitter:latest
build:
context: nitter
dockerfile: Dockerfile
container_name: nitter
volumes:
- ./nitter/nitter.conf:/src/nitter.conf.template:ro
depends_on:
- nitter-redis
restart: unless-stopped
healthcheck:
test: wget -nv --tries=1 --spider http://127.0.0.1:8080/Jack/status/20 || exit 1
interval: 30s
timeout: 5s
retries: 2
env_file:
- ./env.production
environment:
# - DOMAIN_NAME=${DOMAIN_NAME}
# - NITTER_HOSTNAME=${NITTER_HOSTNAME}
- NITTER_SECRET=${NITTER_CLIENT_SECRET}
nitter-redis:
image: redis:6-alpine
container_name: nitter-redis
command: redis-server --save 60 1 --loglevel warning
volumes:
- ./data/nitter/redis:/data
restart: unless-stopped
healthcheck:
test: redis-cli ping
interval: 30s
timeout: 5s
retries: 2
# add the nitter nginx configuration into the nginx volume
nginx:
volumes:
- ./nitter/nginx.conf:/etc/nginx/templates/nitter.conf.template:ro