<< All versions

Skill v1.0.1

currentAutomated scan96/100
eltmon/overdeck/pan-docker

+4 new

──Details
PublishedNovember 17, 2026 at 03:44 PM
Content Hashsha256:b942259bd0a678ec...
Git SHA803b847e4a63
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 5.6 KB)
SKILL.md5.6 KBactive
SKILL.md · 290 lines · 5.6 KB

name: pan-docker description: Docker template selection and configuration for workspaces triggers:

  • pan docker
  • docker setup
  • containerize workspace
  • docker template
  • setup docker for project

allowed-tools:

  • Bash
  • Read
  • Write

metadata: version: "1.0.1"


Docker Template Configuration

Overview

This skill guides you through selecting and configuring Docker templates for Overdeck workspaces. Templates provide containerized development environments with hot reload, databases, and Traefik integration.

When to Use

  • Setting up Docker for a new project
  • Choosing the right template for your stack
  • Configuring container settings
  • Integrating with Traefik for local HTTPS

Available Templates

TemplateStackServices
spring-bootJava 21 + MavenPostgreSQL, Redis
react-viteReact + Vite-
nextjsNext.js 14+-
dotnet.NET 8SQL Server
python-fastapiPython 3.12 + FastAPIPostgreSQL, Redis
monorepoFrontend + BackendPostgreSQL, Redis

Template Selection Guide

By Language/Framework

Your StackRecommended Template
Java/Springspring-boot
React (CRA, Vite)react-vite
Next.jsnextjs
.NET Core/ASP.NETdotnet
Python/FastAPIpython-fastapi
Full-stackmonorepo

By Database Needs

NeedTemplates
PostgreSQLspring-boot, python-fastapi, monorepo
SQL Serverdotnet
Redisspring-boot, python-fastapi, monorepo
No databasereact-vite, nextjs

Workflow: Add Docker to Project

1. Copy Template Files

bash
# Choose your template
TEMPLATE=react-vite # or: spring-boot, nextjs, dotnet, python-fastapi, monorepo
# Copy to project
cp ~/Projects/overdeck/templates/docker/$TEMPLATE/* /path/to/your/project/

2. Create Environment File

bash
cd /path/to/your/project
cat > .env << 'EOF'
# Application
APP_PORT=3000
HOSTNAME=myapp.overdeck.localhost
COMPOSE_PROJECT_NAME=myapp
# Database (if applicable)
DB_NAME=myappdb
DB_USER=postgres
DB_PASSWORD=secretpassword
EOF

3. Start Containers

bash
docker compose up -d

4. Verify

bash
docker compose ps
docker compose logs -f app

Template Details

spring-boot

Files:

  • Dockerfile.dev - Java 21 + Maven
  • docker-compose.yml - App + PostgreSQL + Redis

Ports:

  • 8080: Application
  • 5005: Debug
  • 5432: PostgreSQL
  • 6379: Redis

Hot reload: spring-boot-devtools

react-vite

Files:

  • Dockerfile.dev - Node.js 20
  • docker-compose.yml - App only

Ports:

  • 5173: Vite dev server

Hot reload: Vite HMR with polling

nextjs

Files:

  • Dockerfile.dev - Node.js 20
  • docker-compose.yml - App only

Ports:

  • 3000: Next.js dev server

Hot reload: Fast Refresh with WATCHPACK_POLLING

dotnet

Files:

  • Dockerfile.dev - .NET 8 SDK
  • docker-compose.yml - App + SQL Server

Ports:

  • 5000: Application
  • 1433: SQL Server

Hot reload: dotnet watch

python-fastapi

Files:

  • Dockerfile.dev - Python 3.12
  • docker-compose.yml - App + PostgreSQL + Redis

Ports:

  • 8000: FastAPI
  • 5432: PostgreSQL
  • 6379: Redis

Hot reload: Uvicorn --reload

monorepo

Files:

  • Dockerfile.frontend - React/Vite
  • Dockerfile.backend - Node.js
  • docker-compose.yml - Both + PostgreSQL + Redis

Ports:

  • 5173: Frontend
  • 3001: Backend API
  • 5432: PostgreSQL
  • 6379: Redis

Customization

Add a Service

Edit docker-compose.yml:

yaml
services:
# ... existing services ...
elasticsearch:
image: elasticsearch:8.11.0
environment:
- discovery.type=single-node
ports:
- "9200:9200"
networks:
- app-network

In a stack that declares named networks (as every bundled template does with app-network), every service must list at least one named network or set network_mode: (use network_mode: none for a one-shot job such as a chown or a migration that needs no network). A service with neither, or with an empty networks:, puts Compose on an extra <project>_default network, which uses another bridge subnet. A stack that declares no networks at all and relies only on _default is fine; that network is its only one.

Change Ports

Edit .env:

bash
APP_PORT=8080
DB_PORT=5433

Add Environment Variables

Edit docker-compose.yml under the service:

yaml
environment:
- MY_VAR=value
- ANOTHER_VAR=${FROM_ENV_FILE}

Traefik Integration

All templates include Traefik labels for local HTTPS:

yaml
labels:
- "traefik.enable=true"
- "traefik.http.routers.myapp.rule=Host(`myapp.overdeck.localhost`)"

Enable Traefik

  1. Start Traefik (if not running):

``bash cd /path/to/overdeck/templates/traefik docker compose up -d ``

  1. Connect your app to Traefik network:

``yaml networks: traefik: external: true name: traefik_default ``

  1. Access via: https://myapp.overdeck.localhost

Troubleshooting

Container won't start:

bash
docker compose logs app
# Check for errors, missing dependencies

Hot reload not working:

  • Verify polling is enabled (check Dockerfile/compose)
  • Check volume mounts are correct
  • Restart: docker compose restart app

Port conflicts:

bash
# Find what's using the port
lsof -i :3000
# Change port in .env

Database connection failed:

bash
# Wait for healthcheck
docker compose ps
# Check credentials match

Related Skills

  • /pan:network - Traefik and networking setup
  • /pan:projects - Project management
  • /pan:config - Configuration
← v1.0.0All versions