Docker Compose interprets $ as variable substitution, so we need to escape
Dokploy's project-level variable syntax by doubling the dollar sign.
Changes:
- docker-compose.*.yml: ${{project.VAR}} → $${{project.VAR}}
- Updated DOKPLOY_DEPLOYMENT.md with correct syntax and explanation
- Updated SHARED_PROJECT_DEPLOYMENT.md with correct syntax and explanation
This fixes the 'You may need to escape any $ with another $' error when
deploying via Dokploy.
Evidence: Tested in Dokploy deployment - error resolved with $$ escaping.
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
ai-stack-deployer:
|
|
image: git.app.flexinit.nl/oussamadouhou/ai-stack-deployer:latest
|
|
container_name: ai-stack-deployer
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=3000
|
|
- HOST=0.0.0.0
|
|
- DOKPLOY_URL=${DOKPLOY_URL}
|
|
- DOKPLOY_API_TOKEN=${DOKPLOY_API_TOKEN}
|
|
- STACK_DOMAIN_SUFFIX=${STACK_DOMAIN_SUFFIX:-ai.flexinit.nl}
|
|
- STACK_IMAGE=${STACK_IMAGE:-git.app.flexinit.nl/flexinit/agent-stack:latest}
|
|
- RESERVED_NAMES=${RESERVED_NAMES:-admin,api,www,root,system,test,demo,portal}
|
|
- SHARED_PROJECT_ID=$${{project.SHARED_PROJECT_ID}}
|
|
- SHARED_ENVIRONMENT_ID=$${{project.SHARED_ENVIRONMENT_ID}}
|
|
env_file:
|
|
- .env
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"bun",
|
|
"--eval",
|
|
"fetch('http://localhost:3000/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))",
|
|
]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 5s
|
|
networks:
|
|
- ai-stack-network
|
|
|
|
networks:
|
|
ai-stack-network:
|
|
driver: bridge
|