- Implemented Settings page for changing user passwords with validation and feedback. - Created Setup page for initial admin account setup with form handling and navigation. - Added API service layer for handling requests related to proxy hosts, remote servers, and import functionality. - Introduced mock data for testing purposes and set up testing framework with vitest. - Configured Tailwind CSS for styling and Vite for development and build processes. - Added scripts for Dockerfile validation, Python syntax checking, and Sourcery integration. - Implemented release and coverage scripts for better CI/CD practices.
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
app:
|
|
image: cpmp:local
|
|
container_name: caddyproxymanagerplus-local
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80" # HTTP (Caddy proxy)
|
|
- "443:443" # HTTPS (Caddy proxy)
|
|
- "443:443/udp" # HTTP/3 (Caddy proxy)
|
|
- "8080:8080" # Management UI (CPM+)
|
|
environment:
|
|
- CPM_ENV=production
|
|
- CPM_HTTP_PORT=8080
|
|
- CPM_DB_PATH=/app/data/cpm.db
|
|
- CPM_FRONTEND_DIR=/app/frontend/dist
|
|
- CPM_CADDY_ADMIN_API=http://localhost:2019
|
|
- CPM_CADDY_CONFIG_DIR=/app/data/caddy
|
|
- CPM_CADDY_BINARY=caddy
|
|
- CPM_IMPORT_CADDYFILE=/import/Caddyfile
|
|
- CPM_IMPORT_DIR=/app/data/imports
|
|
volumes:
|
|
- cpm_data_local:/app/data
|
|
- caddy_data_local:/data
|
|
- caddy_config_local:/config
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/v1/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
cpm_data_local:
|
|
driver: local
|
|
caddy_data_local:
|
|
driver: local
|
|
caddy_config_local:
|
|
driver: local
|