mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
87 lines
2.5 KiB
YAML
87 lines
2.5 KiB
YAML
x-basehealth: &base-health
|
|
interval: 10s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
x-lavinhealth: &lavinmq-health
|
|
test: [ "CMD-SHELL", "lavinmqctl status" ]
|
|
<<: *base-health
|
|
|
|
x-redishealth: &redis-health
|
|
test: redis-cli ping
|
|
<<: *base-health
|
|
|
|
x-postgreshealth: &postgresdb-health
|
|
test: [ "CMD", "sh", "-c", "pg_isready -h localhost -U $$POSTGRES_USER" ]
|
|
<<: *base-health
|
|
|
|
x-qbit: &qbit-health
|
|
test: "curl --fail http://localhost:8080"
|
|
<<: *base-health
|
|
|
|
services:
|
|
|
|
postgres:
|
|
image: postgres:latest
|
|
environment:
|
|
PGUSER: postgres # needed for healthcheck.
|
|
# # If you need the database to be accessible from outside, please open the below port.
|
|
# # Furthermore, please, please, please, change the username and password in the .env file.
|
|
# # If you want to enhance your security even more, create a new user for the database with a strong password.
|
|
# ports:
|
|
# - "5432:5432"
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
healthcheck: *postgresdb-health
|
|
restart: unless-stopped
|
|
env_file: ../../.env
|
|
networks:
|
|
- knightcrawler-network
|
|
|
|
redis:
|
|
image: redis/redis-stack:latest
|
|
# # If you need redis to be accessible from outside, please open the below port.
|
|
# ports:
|
|
# - "6379:6379"
|
|
volumes:
|
|
- redis:/data
|
|
restart: unless-stopped
|
|
healthcheck: *redis-health
|
|
env_file: ../../.env
|
|
networks:
|
|
- knightcrawler-network
|
|
|
|
lavinmq:
|
|
env_file: stack.env
|
|
# # If you need the database to be accessible from outside, please open the below port.
|
|
# # Furthermore, please, please, please, look at the documentation for lavinmq / rabbitmq on how to secure the service.
|
|
# ports:
|
|
# - "5672:5672"
|
|
# - "15672:15672"
|
|
# - "15692:15692"
|
|
image: cloudamqp/lavinmq:latest
|
|
healthcheck: *lavinmq-health
|
|
restart: unless-stopped
|
|
volumes:
|
|
- lavinmq:/var/lib/lavinmq/
|
|
|
|
## QBitTorrent is a torrent client that can be used to download torrents. In this case its used to download metadata.
|
|
## The QBit collector requires this.
|
|
qbittorrent:
|
|
image: lscr.io/linuxserver/qbittorrent:latest
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- WEBUI_PORT=8080
|
|
- TORRENTING_PORT=6881
|
|
ports:
|
|
- 6881:6881
|
|
- 6881:6881/udp
|
|
env_file: ../../.env
|
|
networks:
|
|
- knightcrawler-network
|
|
restart: unless-stopped
|
|
healthcheck: *qbit-health
|
|
volumes:
|
|
- ../../config/qbit/qbittorrent.conf:/config/qBittorrent/qBittorrent.conf |