-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# ByteBox - Docker Compose
# Made with ❤️ by Pink Pixel
#
# Quick start:
# docker compose up --build -d
#
# The SQLite database is stored in the "bytebox-data" named volume so your
# cards, categories, and settings survive container restarts and upgrades.
#
# To upgrade:
# docker compose pull (or rebuild with --build)
# docker compose up -d
# Your data is untouched — migrations run automatically on startup.
#
# To back up your data:
# docker run --rm -v bytebox-data:/data -v $(pwd):/backup \
# alpine tar czf /backup/bytebox-backup.tar.gz /data
#
# To restore from backup:
# docker run --rm -v bytebox-data:/data -v $(pwd):/backup \
# alpine tar xzf /backup/bytebox-backup.tar.gz -C /
services:
bytebox:
build:
context: .
dockerfile: Dockerfile
image: bytebox:latest
container_name: bytebox
ports:
- "1334:1334"
volumes:
- bytebox-data:/data # SQLite database lives here
environment:
- NODE_ENV=production
- DATABASE_URL=file:/data/bytebox.db
- PORT=1334
- NEXT_TELEMETRY_DISABLED=1
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:1334/api/cards || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 45s # Give Next.js time to boot on first run
volumes:
bytebox-data:
name: bytebox-data