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