-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.91 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.91 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: shoebox
ports:
- "3000:3000"
environment:
- SERVER_HOST=0.0.0.0
- SERVER_PORT=3000
- DATABASE_URL=sqlite:/app/data/videos.db
- MEDIA_SOURCE_PATHS=/mnt/videos
- THUMBNAIL_PATH=/app/thumbnails
- EXPORT_BASE_PATH=/app/exports
- RUST_LOG=info
volumes:
# Mount media source directories (read-only)
- /path/to/your/videos:/mnt/videos:ro
# Mount export directory (read-write)
- /path/to/your/exports:/app/exports
# Mount data directory for persistence
- ./data:/app/data
# Mount thumbnails directory for persistence
- ./thumbnails:/app/thumbnails
restart: unless-stopped
# Example with PostgreSQL instead of SQLite
#
# services:
# app:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: shoebox
# ports:
# - "3000:3000"
# environment:
# - SERVER_HOST=0.0.0.0
# - SERVER_PORT=3000
# - DATABASE_URL=postgres://postgres:postgres@db:5432/videos
# - MEDIA_SOURCE_PATHS=/mnt/videos
# - THUMBNAIL_PATH=/app/thumbnails
# - EXPORT_BASE_PATH=/app/exports
# - RUST_LOG=info
# volumes:
# # Mount media source directories (read-only)
# - /path/to/your/videos:/mnt/videos:ro
#
# # Mount export directory (read-write)
# - /path/to/your/exports:/app/exports
#
# # Mount thumbnails directory for persistence
# - ./thumbnails:/app/thumbnails
# depends_on:
# - db
# restart: unless-stopped
#
# db:
# image: postgres:15-alpine
# container_name: shoebox-db
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_DB=videos
# volumes:
# - postgres_data:/var/lib/postgresql/data
# restart: unless-stopped
#
# volumes:
# postgres_data: