Files
knightcrawler/docker-compose.yml
trulow ebd97eb250 Added depends on to docker-compose.yml
Added the following lines to both scraper and torrentio services

    depends_on:
      - mongodb
      - postgres
2024-01-26 11:05:12 -08:00

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: