The Gitea runner hung for over 30 minutes on `npm ci` because it cannot reach registry.npmjs.org. The registry is now configurable through the NPM_REGISTRY repository variable, passed on to the server's Docker build, and npm gives up after bounded retries. Jobs also have time limits (test 15 min, deploy 30 min) so the runner is never held forever. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
607 B
YAML
24 lines
607 B
YAML
services:
|
|
game:
|
|
build:
|
|
context: .
|
|
args:
|
|
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmjs.org/}
|
|
image: robot-market-game:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "443:443/udp"
|
|
environment:
|
|
# Point these domains' DNS A records at the server before the first start.
|
|
SITE_ADDRESS: ${SITE_ADDRESS:-robotmarkets.ir, www.robotmarkets.ir}
|
|
volumes:
|
|
# Keeps the HTTPS certificates across restarts and image updates.
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config:
|