mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Added the following lines to both scraper and torrentio services
depends_on:
- mongodb
- postgres
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
---
|
|
|
|
version: '3.9'
|
|
name: torrentio-self-host
|
|
|
|
services:
|
|
|
|
mongodb:
|
|
restart: unless-stopped
|
|
image: docker.io/bitnami/mongodb:7.0
|
|
ports:
|
|
- "27017:27017"
|
|
volumes:
|
|
- mongo-data:/bitnami/mongodb
|
|
|
|
scraper:
|
|
build: ./scraper
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mongodb
|
|
- postgres
|
|
environment:
|
|
- PORT=7001
|
|
- MONGODB_URI=mongodb://mongodb:27017/torrentio
|
|
- DATABASE_URI=postgres://postgres@postgres:5432/torrentio
|
|
- ENABLE_SYNC=true
|
|
|
|
torrentio:
|
|
build: ./addon
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- mongodb
|
|
- postgres
|
|
ports:
|
|
- "7000:7000"
|
|
environment:
|
|
- MONGODB_URI=mongodb://mongodb:27017/torrentio
|
|
- DATABASE_URI=postgres://postgres@postgres:5432/torrentio
|
|
- ENABLE_SYNC=true
|
|
|
|
postgres:
|
|
image: postgres:14-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_DB=torrentio
|
|
|
|
volumes:
|
|
mongo-data:
|
|
postgres-data:
|