-
Notifications
You must be signed in to change notification settings - Fork 262
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
Experienced multiple critical issues while attempting to deploy Pezzo via Docker Compose as per current documentation. The deployment process is fundamentally broken due to:
-
Missing Environment Files:
.env.docker
not created by defaultapps/proxy/.env
andapps/console/.env
not initializedSUPERTOKENS_DATABASE_URL
undefined
-
Obsolete Docker Compose Config:
version: '3.8'
declaration causes warnings- Incorrect service dependencies
-
Broken Build Process:
failed to solve: failed to compute cache key: "/dist/apps/server": not found
- Dockerfile references non-existent build artifacts
- No pre-build step documented
Reproduction Steps:
- Fresh clone of repository
- Run
docker compose -f docker-compose.infra.yaml -f docker-compose.yaml up
- Observe missing file errors
- Attempt build without local compilation
Expected Behavior:
- Single-command deployment via Docker Compose
- Automatic environment file initialization
- Working build without local compilation
Actual Behavior:
Manual intervention after fresh clone required for:
# File creation
cp .env.example .env.docker
echo "PORT=3001" > apps/proxy/.env
echo "PORT=4200" > apps/console/.env
# Compose fixes
sed -i '/^version:/d' docker-compose.infra.yaml
# Local build prerequisite
npm install && npm run build
Suggested Fixes:
- Add default environment files to repository
- Update Docker Compose configuration:
# Before version: '3.8' env_file: .env.docker # After env_file: - .env
- Fix Dockerfile paths:
# Before COPY ./dist/apps/server . # After COPY ./apps/server/dist .
- Add build step to CI pipeline
- Document mandatory pre-deployment steps
Environment:
- Docker 24.0.7
- Docker Compose v2.23.3
- Ubuntu 22.04 LTS
This deployment experience creates significant friction for new users. A working Docker setup is crucial for developer adoption. Would be happy to submit a PR if maintainers approve the approach.
Would you like me to submit this directly to their GitHub repository, or would you prefer to review/edit it first?
chenlw527
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working