mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-27 14:01:15 +00:00
32 lines
810 B
YAML
32 lines
810 B
YAML
services:
|
|
|
|
nitter:
|
|
image: zedeus/nitter:latest
|
|
container_name: nitter
|
|
ports:
|
|
- "8080:8080"
|
|
expose:
|
|
- 8080
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nitter/nitter.conf:/src/nitter.conf: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
|
|
|
|
nitter-redis:
|
|
image: redis:7-alpine
|
|
container_name: nitter-redis
|
|
command: redis-server --save 60 1 --loglevel warning
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nitter/data:/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: redis-cli ping
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 2 |