-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.docker.example
More file actions
84 lines (64 loc) · 2.6 KB
/
.env.docker.example
File metadata and controls
84 lines (64 loc) · 2.6 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
83
84
# Docker Compose Configuration
# Copy this file to .env and customize as needed
#
# Usage:
# cp .env.docker.example .env
# docker-compose up -d
#
# =============================================================================
# Network & Ports
# =============================================================================
# HTTPS port exposed on host (default: 8443)
# Example: UCM_HTTPS_PORT=9443 will expose on https://localhost:9443
UCM_HTTPS_PORT=8443
# =============================================================================
# Data Directories (Bind Mounts)
# =============================================================================
# UCM data directory (certificates, database, logs)
# This directory will be created if it doesn't exist
# Must be absolute path or relative to docker-compose.yml
UCM_DATA_DIR=./data
# PostgreSQL data directory (only for docker-compose.postgres.yml)
# This directory will be created if it doesn't exist
POSTGRES_DATA_DIR=./postgres-data
# =============================================================================
# Database Configuration (PostgreSQL only)
# =============================================================================
# PostgreSQL database name
POSTGRES_DB=ucm
# PostgreSQL username
POSTGRES_USER=ucm
# PostgreSQL password (CHANGE THIS IN PRODUCTION!)
POSTGRES_PASSWORD=changeme123
# =============================================================================
# Security (Optional - Auto-generated if not set)
# =============================================================================
# Flask secret key (auto-generated on first run if not set)
# UCM_SECRET_KEY=your-super-secret-key-here
# JWT secret for token signing (auto-generated on first run if not set)
# UCM_JWT_SECRET=your-jwt-secret-here
# =============================================================================
# Resource Limits (Optional)
# =============================================================================
# Uncomment and adjust in docker-compose.yml under 'deploy' section
# CPU_LIMIT=2
# MEMORY_LIMIT=1G
# CPU_RESERVATION=0.5
# MEMORY_RESERVATION=512M
# =============================================================================
# Migration Example
# =============================================================================
#
# To migrate to a new Docker host:
#
# 1. On old host:
# tar -czf ucm-backup.tar.gz data/ postgres-data/ .env
# scp ucm-backup.tar.gz user@new-host:/path/to/ucm/
#
# 2. On new host:
# cd /path/to/ucm
# tar -xzf ucm-backup.tar.gz
# docker-compose up -d
#
# All data (certificates, database, configuration) is preserved!
#