Added depends on to docker-compose.yml

Added the following lines to both scraper and torrentio services

    depends_on:
      - mongodb
      - postgres
This commit is contained in:
trulow
2024-01-26 11:05:12 -08:00
committed by GitHub
parent 7bddd41fac
commit ebd97eb250

View File

@@ -16,6 +16,9 @@ services:
scraper:
build: ./scraper
restart: unless-stopped
depends_on:
- mongodb
- postgres
environment:
- PORT=7001
- MONGODB_URI=mongodb://mongodb:27017/torrentio
@@ -25,6 +28,9 @@ services:
torrentio:
build: ./addon
restart: unless-stopped
depends_on:
- mongodb
- postgres
ports:
- "7000:7000"
environment:
@@ -46,4 +52,4 @@ services:
volumes:
mongo-data:
postgres-data:
postgres-data: