-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 1.04 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
version: '3.8'
services:
transfs:
build: .
container_name: transfs
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse
ports:
- "3445:445"
- "4139:139"
- "5678:5678" # Expose debug port
- "8000:8000" # Expose FastAPI web service
security_opt:
- apparmor:unconfined
volumes:
- ./content:/mnt/filestorefs # Mount point on the host
- ./app:/app # Mount project root for code and static/templates
environment:
- PYTHONUNBUFFERED=1
entrypoint: >
bash -c "
mkdir -p /mnt/filestorefs &&
service smbd start &&
if [ \"$DEBUG_MODE\" = \"1\" ]; then
echo 'Starting in debug mode...';
python3 -m debugpy --listen 0.0.0.0:5678 --wait-for-client /app/transfs.py &
else
echo 'Starting in normal mode...';
python3 /app/transfs.py &
fi &&
echo 'Starting FastAPI web service...' &&
uvicorn main:app --host 0.0.0.0 --port 8000 --reload &&
tail -f /dev/null
"