- composer.json (jumphp/jumphp, type project): create-project downloads JumPHP, tools/post-create.sh links the folder to the JumPHP repository (git remote "jumphp", bin/jumphp update) and starts the wizard - bin/jumphp init (also `bin/jumphp` alone in a project without a game), tools/init.sh, French / English: tools (git, curl, Docker + compose / buildx, installed with apt / dnf / pacman / zypper / apk / brew), the game (name, id, description, resolution, language), the browser engine (prebuilt download or local build) and a test, server deployment, GitHub (gh repo create, Pages), then Claude Code started with games/<id>/BRIEF.md: a ready-made prompt where the user only wrote what the game should be - bin/jumphp deploy to your server (deploy:setup, server:setup, server:logs): browser builds + FrankenPHP alone (Let's Encrypt), Traefik + FrankenPHP, or behind an existing Traefik (docker/server/*) - bin/jumphp engine:download / engine:pack (GitHub release asset, sha256), update, github - VERSION, LICENSE (MIT), docs/projet.md, README, AGENTS.md, .env.dist Co-Authored-By: Claude Opus 5.5 <[email protected]>
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
# FrankenPHP serving the games behind a Traefik already running on the server (its network, entry point and
|
|
# certificate resolver come from .env: JUMPHP_TRAEFIK_NETWORK / _ENTRYPOINT / _RESOLVER). bin/jumphp deploy.
|
|
services:
|
|
web:
|
|
image: ${JUMPHP_WEB_IMAGE}
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./site:/srv:ro
|
|
- ./Caddyfile:/etc/frankenphp/Caddyfile:ro
|
|
# the image's own check asks Caddy's admin API, which this Caddyfile turns off: Traefik skips unhealthy containers
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-fsS", "-o", "/dev/null", "http://127.0.0.1/"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
start_period: 3s
|
|
networks: [traefik]
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.docker.network=${JUMPHP_TRAEFIK_NETWORK}
|
|
- traefik.http.routers.${JUMPHP_ID}.rule=Host(`${JUMPHP_DOMAIN}`)
|
|
- traefik.http.routers.${JUMPHP_ID}.entrypoints=${JUMPHP_TRAEFIK_ENTRYPOINT}
|
|
- traefik.http.routers.${JUMPHP_ID}.tls.certresolver=${JUMPHP_TRAEFIK_RESOLVER}
|
|
- traefik.http.services.${JUMPHP_ID}.loadbalancer.server.port=80
|
|
networks:
|
|
traefik:
|
|
name: ${JUMPHP_TRAEFIK_NETWORK}
|
|
external: true
|