- Implement DockerHandler to handle API requests for listing Docker containers. - Create DockerService to interact with Docker API and retrieve container information. - Add routes for Docker container management in the API. - Introduce frontend API integration for Docker container listing. - Enhance ProxyHostForm to allow quick selection of Docker containers. - Update Docker-related tests to ensure functionality and error handling. - Modify Docker Compose files to enable Docker socket access for local and remote environments. - Add TypeScript configurations for improved build processes.
24 lines
721 B
YAML
24 lines
721 B
YAML
version: '3.9'
|
|
|
|
# Development override - use with: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
|
|
|
|
services:
|
|
app:
|
|
image: ghcr.io/wikid82/cpmp:dev
|
|
# Development: expose Caddy admin API externally for debugging
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "443:443/udp"
|
|
- "8080:8080"
|
|
- "2019:2019" # Caddy admin API (dev only)
|
|
environment:
|
|
- CPM_ENV=development
|
|
- 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
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro # For local container discovery
|