randall/frontend and randall/backend were being resolved as docker.io paths, causing unwanted registry auth attempts. The localhost/ prefix marks them as local-only images. Also restores docker/setup-buildx-action with the docker driver, and reverts the ECR Public mirror workaround since it was never the root cause. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
37 lines
1013 B
YAML
37 lines
1013 B
YAML
services:
|
|
backend:
|
|
image: localhost/randall/backend:latest
|
|
build:
|
|
context: ../..
|
|
dockerfile: cicd/docker/Dockerfile.backend
|
|
environment:
|
|
- ConnectionStrings__DefaultConnection=Data Source=/app/data/randall.db
|
|
- Jwt__Key=${JWT_KEY:-randall-super-secret-jwt-key-change-in-production-32chars}
|
|
- Jwt__Issuer=${JWT_ISSUER:-randall-api}
|
|
- Jwt__Audience=${JWT_AUDIENCE:-randall-app}
|
|
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Production}
|
|
volumes:
|
|
- db-data:/app/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "bash -c '</dev/tcp/localhost/8080'"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
frontend:
|
|
image: localhost/randall/frontend:latest
|
|
build:
|
|
context: ../..
|
|
dockerfile: cicd/docker/Dockerfile.frontend
|
|
ports:
|
|
- "${PORT:-80}:80"
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
db-data:
|