mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
44 lines
1000 B
YAML
44 lines
1000 B
YAML
version: '2'
|
|
|
|
services:
|
|
mongodb:
|
|
restart: always
|
|
image: docker.io/bitnami/mongodb:7.0
|
|
ports:
|
|
- "27017:27017"
|
|
volumes:
|
|
- 'mongodb_data:/bitnami/mongodb'
|
|
scraper:
|
|
build: ../../scraper/
|
|
restart: always
|
|
ports:
|
|
- "7001:7001"
|
|
environment:
|
|
- PORT=7001
|
|
- MONGODB_URI=mongodb://mongodb:27017/torrentio
|
|
- DATABASE_URI=postgres://postgres@postgres:5432/torrentio
|
|
torrentio:
|
|
build: ../
|
|
restart: always
|
|
ports:
|
|
- "7000:7000"
|
|
environment:
|
|
- MONGODB_URI=mongodb://mongodb:27017/torrentio
|
|
- DATABASE_URI=postgres://postgres@postgres:5432/torrentio
|
|
postgres:
|
|
image: postgres:14-alpine
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- pg_data:/var/lib/postgresql/data
|
|
- './init:/docker-entrypoint-initdb.d'
|
|
environment:
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_DB=torrentio
|
|
|
|
volumes:
|
|
mongodb_data:
|
|
driver: local
|
|
pg_data:
|
|
driver: local |