Move compose to top level

Comment out broken scrapers

Remove db init scripts and use ENABLE_SYNC env var which the code base uses to specify if Sequelize should create or alter tables on startup, meaning we dont need manual db initialization. There were missing tables anyhow :P
This commit is contained in:
iPromKnight
2024-01-18 08:54:57 +00:00
committed by GitHub
parent 2351d92885
commit da997af64a
4 changed files with 45 additions and 94 deletions

49
docker-compose.yml Normal file
View File

@@ -0,0 +1,49 @@
---
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
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
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: