Enhance the compose file
This commit is contained in:
parent
4ffe7d7665
commit
327025c838
1 changed files with 17 additions and 10 deletions
|
@ -1,18 +1,25 @@
|
||||||
version: "3.8"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
redis:
|
|
||||||
image: redis:6-alpine
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- redis-data:/var/lib/redis
|
|
||||||
nitter:
|
nitter:
|
||||||
image: zedeus/nitter:latest
|
image: zedeus/nitter:latest
|
||||||
restart: unless-stopped
|
container_name: nitter
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "127.0.0.1:8080:8080" # Replace with "8080:8080" if you don't use a reverse proxy
|
||||||
volumes:
|
volumes:
|
||||||
- ./nitter.conf:/src/nitter.conf
|
- ./nitter.conf:/src/nitter.conf
|
||||||
|
depends_on:
|
||||||
|
- nitter-redis
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
nitter-redis:
|
||||||
|
image: redis:6-alpine
|
||||||
|
container_name: nitter-redis
|
||||||
|
command: redis-server --save 60 1 --loglevel warning
|
||||||
|
volumes:
|
||||||
|
- nitter-redis:/data
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
redis-data:
|
redis-data:
|
||||||
|
|
Loading…
Reference in a new issue