Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,14 @@ cd TimeTracker
cp env.example .env
# Edit .env and set a strong SECRET_KEY (python -c "import secrets; print(secrets.token_hex(32))")

# Start with Docker Compose
docker-compose -f docker-compose.example.yml up -d
# Start with Docker Compose (HTTPS via nginx)
docker-compose up -d

# Access at https://localhost (self-signed cert)

# Prefer plain HTTP on port 8080?
# Use the example compose that publishes the app directly:
# docker-compose -f docker-compose.example.yml up -d
# Access at http://localhost:8080
```

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ services:
- CSRF_COOKIE_SAMESITE=${CSRF_COOKIE_SAMESITE:-Lax}
- CSRF_COOKIE_NAME=${CSRF_COOKIE_NAME:-XSRF-TOKEN}
- PREFERRED_URL_SCHEME=${PREFERRED_URL_SCHEME:-https}
- WTF_CSRF_TRUSTED_ORIGINS=$(WTF_CSRF_TRUSTED_ORIGINS:-https://localhost)
- WTF_CSRF_TRUSTED_ORIGINS=${WTF_CSRF_TRUSTED_ORIGINS:-https://localhost}
- DATABASE_URL=postgresql+psycopg2://timetracker:timetracker@db:5432/timetracker
- LOG_FILE=/app/logs/timetracker.log
# Analytics & Monitoring (optional)
Expand Down
8 changes: 7 additions & 1 deletion docs/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ cd TimeTracker
docker-compose up -d

# 3. Access the application
# Open your browser to: http://localhost:8080
# Open your browser to: https://localhost
# (Self‑signed certificate; your browser will show a warning the first time.)

# Prefer plain HTTP on port 8080 instead?
# Use the example compose that publishes the app directly:
# docker-compose -f docker-compose.example.yml up -d
# Then open: http://localhost:8080
```

**That's it!** TimeTracker is now running with PostgreSQL.
Expand Down
9 changes: 8 additions & 1 deletion scripts/generate-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ echo ""
# Install openssl if not present
if ! command -v openssl >/dev/null 2>&1; then
echo "Installing OpenSSL..."
apk add --no-cache openssl
if command -v apk >/dev/null 2>&1; then
apk add --no-cache openssl
elif command -v apt-get >/dev/null 2>&1; then
apt-get update && apt-get install -y --no-install-recommends openssl && rm -rf /var/lib/apt/lists/*
else
echo "⚠️ Could not detect package manager to install openssl. Please install it manually."
exit 1
fi
fi

# Detect IP address (try to get container host IP)
Expand Down
Loading