* uuid fix: (fixes #118) - update all mongo models to use UUID type as main '_id' (users continue to use 'id' as defined by fastapi-users) - update all foreign doc references to use UUID instead of string - api handlers convert str->uuid as needed api fix: - fix single crawl api, add CrawlOut response model - fix collections api - fix standalone-docker apis - for manual job, set user to current user, overriding the setting from crawlconfig * additional fixes: - rename username -> userName to indicate not the login 'username' - rename user -> userid, archive -> aid for crawlconfig + crawls - ensure invites correctly convert str -> uuid as needed - filter out unset values from browsertrix-crawler config * convert remaining user -> userid variables ensure archive id is passed to crawl_manager as str (via archive.id_str) * remove bulk crawlconfig delete * add support for `stopping` state when gracefully stopping crawl * for get crawl endpoint, check stopped crawls first, then running
86 lines
1.4 KiB
YAML
86 lines
1.4 KiB
YAML
version: '3.5'
|
|
|
|
services:
|
|
backend:
|
|
build: ./backend
|
|
image: registry.digitalocean.com/btrix/webrecorder/browsertrix-api
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
env_file:
|
|
- ./configs/config.env
|
|
|
|
depends_on:
|
|
- minio
|
|
- mongo
|
|
|
|
ports:
|
|
- 8000:8000
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
image: registry.digitalocean.com/btrix/webrecorder/browsertrix-frontend
|
|
ports:
|
|
- 9871:80
|
|
|
|
depends_on:
|
|
- backend
|
|
|
|
environment:
|
|
- BACKEND_HOST=backend
|
|
- BROWSER_SCREENCAST_URL=http://$$2:9037
|
|
|
|
redis:
|
|
image: redis
|
|
command: redis-server --appendonly yes
|
|
|
|
ports:
|
|
- 6379:6379
|
|
|
|
volumes:
|
|
- btrix-redis-data:/data
|
|
|
|
mongo:
|
|
image: mongo
|
|
volumes:
|
|
- btrix-mongo-data:/data/db
|
|
|
|
env_file:
|
|
- ./configs/config.env
|
|
|
|
minio:
|
|
image: minio/minio
|
|
command: server /data --console-address :9001
|
|
ports:
|
|
- 9000:9000
|
|
- 9001:9001
|
|
|
|
volumes:
|
|
- btrix-minio-data:/data
|
|
|
|
env_file:
|
|
- ./configs/config.env
|
|
|
|
init_minio_bucket:
|
|
image: minio/mc
|
|
entrypoint: "/bin/sh"
|
|
command: ['-c', 'mc mb local/test-bucket; mc policy set public local/test-bucket' ]
|
|
|
|
env_file:
|
|
- ./configs/config.env
|
|
|
|
depends_on:
|
|
- minio
|
|
|
|
|
|
volumes:
|
|
btrix-redis-data:
|
|
btrix-mongo-data:
|
|
btrix-minio-data:
|
|
|
|
|
|
networks:
|
|
default:
|
|
name: btrix-cloud-net
|
|
|