-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.standalone.yml
More file actions
44 lines (42 loc) · 1.14 KB
/
docker-compose.standalone.yml
File metadata and controls
44 lines (42 loc) · 1.14 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
version: '3.8'
# Self-contained FilesAPI with embedded LiteDB database
# No external dependencies required - completely portable
services:
filesapi:
build:
context: .
dockerfile: Dockerfile
container_name: filesapi-standalone
restart: unless-stopped
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://0.0.0.0:8080
- ASPNETCORE_HTTP_PORTS=8080
- USE_EMBEDDED_DATABASE=true
- DATABASE_PATH=/app/data/filesapi.db
- UPLOADS_PATH=/app/uploads
- DOTNET_RUNNING_IN_CONTAINER=true
# Analytics configuration
- ANALYTICS_ENABLED=true
- ANALYTICS_RETENTION_DAYS=365
ports:
- "5100:8080"
volumes:
# Persist data and uploads
- filesapi_data:/app/data
- filesapi_uploads:/app/uploads
- filesapi_logs:/app/logs
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Named volumes for data persistence
volumes:
filesapi_data:
driver: local
filesapi_uploads:
driver: local
filesapi_logs:
driver: local