shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Knowledge
Search knowledge... ⌘K
Knowledge · Guidelines · docker

Production Compose

Guidelines for production docker-compose files used by Dokploy

Andrei Solovev

Metadata

docker docker mandatory

Procedures

Showing 3 of 8

  1. 1 Service naming
    Use project-prefixed names for all services to avoid collisions when multiple projects share the same VPS
    services:
      sbx-api:        # project prefix: sbx
        ...
      sbx-web:
        ...
      shredbx-api:    # project prefix: shredbx
        ...
      shredbx-web:
        ...
  2. 2 Build context
    Use repo-relative paths for build contexts since Dokploy clones the entire repo before building
    services:
      sbx-api:
        build:
          context: .
          dockerfile: projects/sbx/apps/sbx/api/Dockerfile
      sbx-web:
        build:
          context: .
          dockerfile: projects/sbx/apps/sbx/svelte/Dockerfile
  3. 3 Port allocation
    Match the server's port registry from the server model YAML. Never hardcode ports — use variable substitution or the registered port values
    services:
      sbx-api:
        ports:
          - "${SBX_API_PORT:-5000}:5000"
      sbx-web:
        ports:
          - "${SBX_WEB_PORT:-4000}:4000"
    # Port values must match .sbx/ports/registry.yml

Tools

  • docker compose
  • docker
shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |