Eliminate ${VAR} substitutions from docker-compose.yml
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m9s

Move DATABASE_URL, ADMIN_TOKEN, ARTDAG_CLUSTER_KEY to .env
and use env_file on all services. This means docker stack deploy
no longer needs env vars sourced in the shell, and repeat deploys
won't trigger spurious restarts on unchanged services.

GPU worker gets its own .env.gpu with fully resolved cross-VPC URLs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-06 22:06:38 +00:00
parent 6e8e8f8de9
commit f5ef9cddd2
3 changed files with 19 additions and 34 deletions

View File

@@ -55,7 +55,6 @@ jobs:
run: |
ssh "root@$DEPLOY_HOST" "
cd /root/art-dag/celery
set -a && source .env && set +a
docker stack deploy -c docker-compose.yml celery
echo 'Waiting for services to update...'
sleep 10