-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteploy.yml
More file actions
53 lines (46 loc) · 1.69 KB
/
Copy pathteploy.yml
File metadata and controls
53 lines (46 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Teploy Dash — Teploy deployment template.
#
# First time:
# teploy setup # installs Docker + Caddy on the server
# teploy deploy # builds image, ships it, switches traffic
#
# Subsequent deploys:
# teploy deploy
#
# Required env (export before running):
# TEPLOY_DASH_PASSWORD — dashboard password (username defaults to "admin")
#
# SSH access to servers:
# Place your SSH private key at /deployments/dash/volumes/ssh-key/id_ed25519
# on the server after the first deploy. Mode 600.
#
# Teploy server list:
# Place a servers.yml at /deployments/dash/volumes/teploy-config/servers.yml
# — same format as ~/.teploy/servers.yml on your machine.
app: dash
domain: dash.example.com
server: infra-home
ingress: host
port: 3456
platform: linux/amd64
# Build mode: server-side build (no image, no build_local).
# Compiles natively on the server — no local Docker or cross-build needed.
stop_timeout: 10
# Dash's health endpoint is exempt from auth; teploy polls it to gate
# traffic switch. Default path /health would get 401 and loop until timeout.
health:
path: /api/health
env:
TEPLOY_DASH_PASSWORD: "${TEPLOY_DASH_PASSWORD}"
# Skip SSH host-key verification inside the container (no known_hosts file).
TEPLOY_DASH_SSH_INSECURE: "1"
# SSH key path inside the container. Place the key in the ssh-key volume.
TEPLOY_SSH_KEY: "/root/.ssh/id_ed25519"
volumes:
# Monitor state (check history, alert state).
dash-state: /var/teploy-dash
# SSH private key for fleet SSH connections.
# Place key at /deployments/dash/volumes/ssh-key/id_ed25519 (mode 600).
ssh-key: /root/.ssh
# Teploy CLI config — place servers.yml here for fleet view.
teploy-config: /root/.teploy