forked from karanhudia/borg-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
82 lines (79 loc) · 2.77 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
82 lines (79 loc) · 2.77 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
77
78
79
80
81
82
# Standalone dev compose — NOT an override of docker-compose.yml
# Run with: docker-compose -f docker-compose.dev.yml up (no base file)
# Or via: ./scripts/dev.sh
#
# Separate container names + ports so prod (docker-compose.yml) can run alongside:
# Prod backend: borg-web-ui on PORT (default 8082)
# Dev backend: borg-web-ui-dev on DEV_PORT (default 8083)
services:
app:
build:
context: .
dockerfile: Dockerfile
target: development
container_name: borg-web-ui-dev
restart: unless-stopped
privileged: true
ports:
- "${DEV_PORT:-8083}:${DEV_PORT:-8083}"
volumes:
- ./app:/app/app # Hot-reload: local source mounted over image
- ./.local-data:/data # Local dev data (db, ssh keys, logs)
- ${LOCAL_STORAGE_PATH:-/}:/local:rw
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:rw
environment:
- PUID=0
- PORT=${DEV_PORT:-8083}
- DATA_DIR=/data
- DATABASE_URL=sqlite:////data/borg.db
- SECRET_KEY=dev-secret-key-not-for-production
- ENVIRONMENT=development
- ENABLE_RELOAD=true
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- PUBLIC_BASE_URL=${PUBLIC_BASE_URL:-}
- LOCAL_MOUNT_POINTS=${LOCAL_MOUNT_POINTS:-/local}
- CACHE_TTL_SECONDS=7200
- CACHE_MAX_SIZE_MB=2048
# Licensing / activation
- ACTIVATION_SERVICE_URL=${ACTIVATION_SERVICE_URL:-http://host.docker.internal:8787}
- ACTIVATION_PUBLIC_KEY=${ACTIVATION_PUBLIC_KEY:-MCowBQYDK2VwAyEA47u7lrJoXKAhcdNKy75+H4y/VpX8cvaqgQGx3ue8w4g=}
- ACTIVATION_TIMEOUT_SECONDS=${ACTIVATION_TIMEOUT_SECONDS:-10}
- ENABLE_STARTUP_LICENSE_SYNC=${ENABLE_STARTUP_LICENSE_SYNC:-false}
# To enable Redis caching in dev, uncomment the two lines below
# and uncomment the redis service + depends_on section at the bottom
# - REDIS_HOST=redis
# - REDIS_PORT=6379
# Uncomment to require Redis before starting:
# depends_on:
# redis:
# condition: service_healthy
networks:
- borg_dev_network
# --- Optional: Redis for dev ---
# Uncomment below to run Redis in dev (e.g. for testing cache features).
# Also uncomment REDIS_HOST/REDIS_PORT env vars and depends_on above.
#
# redis:
# image: redis:7-alpine
# container_name: borg-redis-dev
# restart: unless-stopped
# command: >
# redis-server
# --maxmemory 512mb
# --maxmemory-policy allkeys-lru
# --save ""
# --appendonly no
# ports:
# - "6380:6379"
# healthcheck:
# test: ["CMD", "redis-cli", "ping"]
# interval: 10s
# timeout: 3s
# retries: 3
# start_period: 10s
# networks:
# - borg_dev_network
networks:
borg_dev_network:
driver: bridge