mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-20 06:47:31 -04:00
* feat(db): add support for multiple users and organizations * feat: backfill entities with new organization id * refactor: filter all backend queries to surface only organization specific entities * refactor: each org has its own restic password * test: ensure organization is created * chore: pr feedbacks * refactor: filter by org id in all places * refactor: download restic password from stored db password * refactor(navigation): use volume id in urls instead of name * feat: disable registrations * refactor(auth): bubble up auth error to hono * refactor: use async local storage for cleaner context sharing * refactor: enable user registration vs disabling it * test: multi-org isolation * chore: final cleanup
67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
services:
|
|
zerobyte-dev:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: development
|
|
container_name: zerobyte
|
|
restart: unless-stopped
|
|
devices:
|
|
- /dev/fuse:/dev/fuse
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
environment:
|
|
- NODE_ENV=development
|
|
- APP_SECRET=94bad4678ce84a60b9789bd2114a6bf780aeb38df426f7352c941c66e25d5c2b
|
|
ports:
|
|
- "4096:4096"
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /var/lib/zerobyte:/var/lib/zerobyte
|
|
- ./app:/app/app
|
|
- ~/.config/rclone:/root/.config/rclone
|
|
|
|
zerobyte-prod:
|
|
# image: ghcr.io/nicotsx/zerobyte:v0.22.0
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: production
|
|
args:
|
|
- APP_VERSION=0.20.0
|
|
container_name: zerobyte
|
|
restart: unless-stopped
|
|
devices:
|
|
- /dev/fuse:/dev/fuse
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
ports:
|
|
- "4096:4096"
|
|
environment:
|
|
- APP_SECRET=94bad4678ce84a60b9789bd2114a6bf780aeb38df426f7352c941c66e25d5c2b
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /var/lib/zerobyte:/var/lib/zerobyte
|
|
- ~/.config/rclone:/root/.config/rclone
|
|
|
|
zerobyte-e2e:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: production
|
|
container_name: zerobyte
|
|
restart: unless-stopped
|
|
environment:
|
|
- DISABLE_RATE_LIMITING=true
|
|
- APP_SECRET=94bad4678ce84a60b9789bd2114a6bf780aeb38df426f7352c941c66e25d5c2b
|
|
devices:
|
|
- /dev/fuse:/dev/fuse
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
ports:
|
|
- "4096:4096"
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./playwright/data:/var/lib/zerobyte/data
|
|
- ./playwright/temp:/test-data
|