25 lines
923 B
YAML
25 lines
923 B
YAML
# PX360 — DEV deploy target.
|
|
# Usage: `make deploy-dev` (runs: target deploy --config deploy/target.dev.yaml)
|
|
app:
|
|
name: "hh-dev" # isolated project dir: ~/.target/hh-dev/
|
|
domain: "px360.hh.med.sa" # shared Caddy routes this domain → web_app
|
|
port: 8000
|
|
|
|
server:
|
|
ip: "10.132.16.5"
|
|
user: "ahh-ops"
|
|
ssh_key: "~/.ssh/id_rsa"
|
|
|
|
build:
|
|
engine: "local"
|
|
context: "." # repo root (where the Dockerfile lives)
|
|
|
|
deploy:
|
|
use_caddy: false # shared target-caddy handles HTTPS
|
|
caddy_email: "ismail.mosa.ibrahim@gmail.com"
|
|
compose_file: "deploy/compose.dev.yml" # user-provided compose (uses {{ .ImageTag }})
|
|
env_file: "deploy/env.dev" # shipped to ~/.target/hh-dev/.env each deploy
|
|
pre_deploy: "python manage.py migrate --noinput" # runs before the swap (old keeps serving)
|
|
cleanup: ["remote", "local"]
|
|
keep_versions: 2
|