[{"data":1,"prerenderedAt":1122},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fapplications\u002Ffirst-application":3},{"id":4,"title":5,"body":6,"description":1115,"extension":1116,"meta":1117,"navigation":212,"path":1118,"seo":1119,"stem":1120,"__hash__":1121},"docs\u002Fdocs\u002Fapplications\u002Ffirst-application.md","Launch your first application",{"type":7,"value":8,"toc":1105},"minimark",[9,13,17,47,100,105,115,141,352,368,372,375,680,683,774,778,799,807,816,820,838,844,850,857,861,879,885,891,900,906,913,917,934,940,961,997,1001,1023,1029,1045,1069,1073,1101],[10,11,5],"h1",{"id":12},"launch-your-first-application",[14,15,16],"p",{},"In this walkthrough you deploy a small web app: two nginx containers on two members, with an HAProxy load balancer in front on the third. Then you check it, curl it and restart it. About twenty minutes.",[14,18,19,20,24,25,28,29,32,33,36,37,32,42,46],{},"You'll need a cluster called ",[21,22,23],"code",{},"lab"," with members ",[21,26,27],{},"node-a",", ",[21,30,31],{},"node-b"," and ",[21,34,35],{},"node-c",", formed from this directory. If you don't have one yet, start at ",[38,39,41],"a",{"href":40},"\u002Fdocs\u002Fmachines\u002Ffirst-machine","Launch your first machine",[38,43,45],{"href":44},"\u002Fdocs\u002Fmachines\u002Fclusters","Form a cluster",". We'll use these tailnet addresses:",[48,49,50,63],"table",{},[51,52,53],"thead",{},[54,55,56,60],"tr",{},[57,58,59],"th",{},"Member",[57,61,62],{},"Tailnet address",[64,65,66,78,89],"tbody",{},[54,67,68,73],{},[69,70,71],"td",{},[21,72,27],{},[69,74,75],{},[21,76,77],{},"100.64.0.11",[54,79,80,84],{},[69,81,82],{},[21,83,31],{},[69,85,86],{},[21,87,88],{},"100.64.0.12",[54,90,91,95],{},[69,92,93],{},[21,94,35],{},[69,96,97],{},[21,98,99],{},"100.64.0.13",[101,102,104],"h2",{"id":103},"_1-build-the-image-5-minutes","1. Build the image (5 minutes)",[14,106,107,110,111,114],{},[21,108,109],{},"sg"," runs whatever image you name, so first make one with a web server listening on port 8080 and a ",[21,112,113],{},"\u002Fhealthz"," endpoint. Do this on any member; the cluster shares images.",[116,117,122],"pre",{"className":118,"code":119,"language":120,"meta":121,"style":121},"language-bash shiki shiki-themes github-dark-high-contrast","ssh root@203.0.113.10                 # node-a's public address\n","bash","",[21,123,124],{"__ignoreMap":121},[125,126,129,133,137],"span",{"class":127,"line":128},"line",1,[125,130,132],{"class":131},"s_sBn","ssh",[125,134,136],{"class":135},"sTRMh"," root@203.0.113.10",[125,138,140],{"class":139},"sQrFR","                 # node-a's public address\n",[116,142,144],{"className":118,"code":143,"language":120,"meta":121,"style":121},"cat > \u002Froot\u002Fhello.conf \u003C\u003C'EOF'\nserver {\n    listen 8080;\n    default_type text\u002Fplain;\n    location = \u002Fhealthz { return 200 \"ok\\n\"; }\n    location \u002F { return 200 \"hello from $hostname\\n\"; }\n}\nEOF\n\nlxc launch ubuntu:24.04 build-hello\nlxc exec build-hello -- cloud-init status --wait     # first boot must finish before apt works\nlxc exec build-hello -- sh -ec 'apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -y -q nginx'\nlxc file push \u002Froot\u002Fhello.conf build-hello\u002Fetc\u002Fnginx\u002Fconf.d\u002Fhello.conf\nlxc exec build-hello -- sh -ec 'rm -f \u002Fetc\u002Fnginx\u002Fsites-enabled\u002Fdefault && nginx -t && systemctl enable nginx'\nlxc stop build-hello\nlxc publish build-hello --alias hello-web-1\nlxc delete build-hello\nexit\n",[21,145,146,165,171,177,183,189,195,201,207,214,229,256,276,292,310,320,336,346],{"__ignoreMap":121},[125,147,148,151,155,158,161],{"class":127,"line":128},[125,149,150],{"class":131},"cat",[125,152,154],{"class":153},"sWyjQ"," >",[125,156,157],{"class":135}," \u002Froot\u002Fhello.conf",[125,159,160],{"class":153}," \u003C\u003C",[125,162,164],{"class":163},"sMAXC","'EOF'\n",[125,166,168],{"class":127,"line":167},2,[125,169,170],{"class":135},"server {\n",[125,172,174],{"class":127,"line":173},3,[125,175,176],{"class":135},"    listen 8080;\n",[125,178,180],{"class":127,"line":179},4,[125,181,182],{"class":135},"    default_type text\u002Fplain;\n",[125,184,186],{"class":127,"line":185},5,[125,187,188],{"class":135},"    location = \u002Fhealthz { return 200 \"ok\\n\"; }\n",[125,190,192],{"class":127,"line":191},6,[125,193,194],{"class":135},"    location \u002F { return 200 \"hello from $hostname\\n\"; }\n",[125,196,198],{"class":127,"line":197},7,[125,199,200],{"class":135},"}\n",[125,202,204],{"class":127,"line":203},8,[125,205,206],{"class":163},"EOF\n",[125,208,210],{"class":127,"line":209},9,[125,211,213],{"emptyLinePlaceholder":212},true,"\n",[125,215,217,220,223,226],{"class":127,"line":216},10,[125,218,219],{"class":131},"lxc",[125,221,222],{"class":135}," launch",[125,224,225],{"class":135}," ubuntu:24.04",[125,227,228],{"class":135}," build-hello\n",[125,230,232,234,237,240,244,247,250,253],{"class":127,"line":231},11,[125,233,219],{"class":131},[125,235,236],{"class":135}," exec",[125,238,239],{"class":135}," build-hello",[125,241,243],{"class":242},"sCcAr"," --",[125,245,246],{"class":135}," cloud-init",[125,248,249],{"class":135}," status",[125,251,252],{"class":242}," --wait",[125,254,255],{"class":139},"     # first boot must finish before apt works\n",[125,257,259,261,263,265,267,270,273],{"class":127,"line":258},12,[125,260,219],{"class":131},[125,262,236],{"class":135},[125,264,239],{"class":135},[125,266,243],{"class":242},[125,268,269],{"class":135}," sh",[125,271,272],{"class":242}," -ec",[125,274,275],{"class":135}," 'apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -y -q nginx'\n",[125,277,279,281,284,287,289],{"class":127,"line":278},13,[125,280,219],{"class":131},[125,282,283],{"class":135}," file",[125,285,286],{"class":135}," push",[125,288,157],{"class":135},[125,290,291],{"class":135}," build-hello\u002Fetc\u002Fnginx\u002Fconf.d\u002Fhello.conf\n",[125,293,295,297,299,301,303,305,307],{"class":127,"line":294},14,[125,296,219],{"class":131},[125,298,236],{"class":135},[125,300,239],{"class":135},[125,302,243],{"class":242},[125,304,269],{"class":135},[125,306,272],{"class":242},[125,308,309],{"class":135}," 'rm -f \u002Fetc\u002Fnginx\u002Fsites-enabled\u002Fdefault && nginx -t && systemctl enable nginx'\n",[125,311,313,315,318],{"class":127,"line":312},15,[125,314,219],{"class":131},[125,316,317],{"class":135}," stop",[125,319,228],{"class":135},[125,321,323,325,328,330,333],{"class":127,"line":322},16,[125,324,219],{"class":131},[125,326,327],{"class":135}," publish",[125,329,239],{"class":135},[125,331,332],{"class":242}," --alias",[125,334,335],{"class":135}," hello-web-1\n",[125,337,339,341,344],{"class":127,"line":338},17,[125,340,219],{"class":131},[125,342,343],{"class":135}," delete",[125,345,228],{"class":135},[125,347,349],{"class":127,"line":348},18,[125,350,351],{"class":242},"exit\n",[14,353,354,355,358,359,363,364],{},"You now have a container image called ",[21,356,357],{},"hello-web-1",". It can't boot as a VM; for that, see ",[38,360,362],{"href":361},"\u002Fdocs\u002Fapplications\u002Fvms","Launch a VM",". ",[38,365,367],{"href":366},"\u002Fdocs\u002Fapplications#your-app-ships-as-an-lxd-image","Why images?",[101,369,371],{"id":370},"_2-write-applicationyaml-3-minutes","2. Write application.yaml (3 minutes)",[14,373,374],{},"In the same directory as your machine and cluster specs:",[116,376,380],{"className":377,"code":378,"language":379,"meta":121,"style":121},"language-yaml shiki shiki-themes github-dark-high-contrast","api_version: genesis\u002Fv1\napplication:\n  name: hello\n  cluster: lab\n  groups:\n    - name: web\n      count: 2\n      image: hello-web-1\n      target: {web-0: node-a, web-1: node-b}\n      size: {cpu: 1, memory: 1GiB}\n      env: {APP_MODE: demo}\n      expose:\n        - port: 8080\u002Ftcp\n      health: [\u002Fusr\u002Fbin\u002Fcurl, -fsS, http:\u002F\u002F127.0.0.1:8080\u002Fhealthz]\n  load_balancers:\n    - name: edge\n      kind: haproxy\n      balances: [web]\n      target: {edge-0: node-c}\n      listen: 8088\u002Ftcp\n      check: {type: http, path: \u002Fhealthz, expect_status: 200}\n","yaml",[21,381,382,394,402,412,422,429,442,452,462,488,515,532,539,552,576,583,594,604,616,632,643],{"__ignoreMap":121},[125,383,384,388,391],{"class":127,"line":128},[125,385,387],{"class":386},"sKpQp","api_version",[125,389,390],{"class":163},": ",[125,392,393],{"class":135},"genesis\u002Fv1\n",[125,395,396,399],{"class":127,"line":167},[125,397,398],{"class":386},"application",[125,400,401],{"class":163},":\n",[125,403,404,407,409],{"class":127,"line":173},[125,405,406],{"class":386},"  name",[125,408,390],{"class":163},[125,410,411],{"class":135},"hello\n",[125,413,414,417,419],{"class":127,"line":179},[125,415,416],{"class":386},"  cluster",[125,418,390],{"class":163},[125,420,421],{"class":135},"lab\n",[125,423,424,427],{"class":127,"line":185},[125,425,426],{"class":386},"  groups",[125,428,401],{"class":163},[125,430,431,434,437,439],{"class":127,"line":191},[125,432,433],{"class":163},"    - ",[125,435,436],{"class":386},"name",[125,438,390],{"class":163},[125,440,441],{"class":135},"web\n",[125,443,444,447,449],{"class":127,"line":197},[125,445,446],{"class":386},"      count",[125,448,390],{"class":163},[125,450,451],{"class":242},"2\n",[125,453,454,457,459],{"class":127,"line":203},[125,455,456],{"class":386},"      image",[125,458,390],{"class":163},[125,460,461],{"class":135},"hello-web-1\n",[125,463,464,467,470,473,475,477,479,482,484,486],{"class":127,"line":209},[125,465,466],{"class":386},"      target",[125,468,469],{"class":163},": {",[125,471,472],{"class":386},"web-0",[125,474,390],{"class":163},[125,476,27],{"class":135},[125,478,28],{"class":163},[125,480,481],{"class":386},"web-1",[125,483,390],{"class":163},[125,485,31],{"class":135},[125,487,200],{"class":163},[125,489,490,493,495,498,500,503,505,508,510,513],{"class":127,"line":216},[125,491,492],{"class":386},"      size",[125,494,469],{"class":163},[125,496,497],{"class":386},"cpu",[125,499,390],{"class":163},[125,501,502],{"class":242},"1",[125,504,28],{"class":163},[125,506,507],{"class":386},"memory",[125,509,390],{"class":163},[125,511,512],{"class":135},"1GiB",[125,514,200],{"class":163},[125,516,517,520,522,525,527,530],{"class":127,"line":231},[125,518,519],{"class":386},"      env",[125,521,469],{"class":163},[125,523,524],{"class":386},"APP_MODE",[125,526,390],{"class":163},[125,528,529],{"class":135},"demo",[125,531,200],{"class":163},[125,533,534,537],{"class":127,"line":258},[125,535,536],{"class":386},"      expose",[125,538,401],{"class":163},[125,540,541,544,547,549],{"class":127,"line":278},[125,542,543],{"class":163},"        - ",[125,545,546],{"class":386},"port",[125,548,390],{"class":163},[125,550,551],{"class":135},"8080\u002Ftcp\n",[125,553,554,557,560,563,565,568,570,573],{"class":127,"line":294},[125,555,556],{"class":386},"      health",[125,558,559],{"class":163},": [",[125,561,562],{"class":135},"\u002Fusr\u002Fbin\u002Fcurl",[125,564,28],{"class":163},[125,566,567],{"class":135},"-fsS",[125,569,28],{"class":163},[125,571,572],{"class":135},"http:\u002F\u002F127.0.0.1:8080\u002Fhealthz",[125,574,575],{"class":163},"]\n",[125,577,578,581],{"class":127,"line":312},[125,579,580],{"class":386},"  load_balancers",[125,582,401],{"class":163},[125,584,585,587,589,591],{"class":127,"line":322},[125,586,433],{"class":163},[125,588,436],{"class":386},[125,590,390],{"class":163},[125,592,593],{"class":135},"edge\n",[125,595,596,599,601],{"class":127,"line":338},[125,597,598],{"class":386},"      kind",[125,600,390],{"class":163},[125,602,603],{"class":135},"haproxy\n",[125,605,606,609,611,614],{"class":127,"line":348},[125,607,608],{"class":386},"      balances",[125,610,559],{"class":163},[125,612,613],{"class":135},"web",[125,615,575],{"class":163},[125,617,619,621,623,626,628,630],{"class":127,"line":618},19,[125,620,466],{"class":386},[125,622,469],{"class":163},[125,624,625],{"class":386},"edge-0",[125,627,390],{"class":163},[125,629,35],{"class":135},[125,631,200],{"class":163},[125,633,635,638,640],{"class":127,"line":634},20,[125,636,637],{"class":386},"      listen",[125,639,390],{"class":163},[125,641,642],{"class":135},"8088\u002Ftcp\n",[125,644,646,649,651,654,656,659,661,664,666,668,670,673,675,678],{"class":127,"line":645},21,[125,647,648],{"class":386},"      check",[125,650,469],{"class":163},[125,652,653],{"class":386},"type",[125,655,390],{"class":163},[125,657,658],{"class":135},"http",[125,660,28],{"class":163},[125,662,663],{"class":386},"path",[125,665,390],{"class":163},[125,667,113],{"class":135},[125,669,28],{"class":163},[125,671,672],{"class":386},"expect_status",[125,674,390],{"class":163},[125,676,677],{"class":242},"200",[125,679,200],{"class":163},[14,681,682],{},"Line by line:",[684,685,686,696,720,728,736,744,756],"ul",{},[687,688,689,695],"li",{},[690,691,692],"strong",{},[21,693,694],{},"cluster: lab"," must be a cluster registered in this directory's ledger.",[687,697,698,32,703,708,709,32,711,713,714,32,717,719],{},[690,699,700],{},[21,701,702],{},"count: 2",[690,704,705],{},[21,706,707],{},"target"," go together: exactly two entries, keyed ",[21,710,472],{},[21,712,481],{},", each naming a member. The instances will be called ",[21,715,716],{},"hello-web-0",[21,718,357],{},".",[687,721,722,727],{},[690,723,724],{},[21,725,726],{},"size"," sets LXD's CPU and memory limits.",[687,729,730,735],{},[690,731,732],{},[21,733,734],{},"env"," becomes environment variables in the instances.",[687,737,738,743],{},[690,739,740],{},[21,741,742],{},"expose"," publishes port 8080 of each instance on its member's tailnet address.",[687,745,746,751,752,755],{},[690,747,748],{},[21,749,750],{},"health"," is a command run ",[690,753,754],{},"inside"," each instance. Exit 0 means healthy. Container groups must have one.",[687,757,758,763,764,767,768,770,771,773],{},[690,759,760],{},[21,761,762],{},"load_balancers"," puts one HAProxy instance (",[21,765,766],{},"hello-edge-0",") on ",[21,769,35],{},", listening on 8088 and checking ",[21,772,113],{}," on each backend.",[101,775,777],{"id":776},"_3-register-it-1-minute","3. Register it (1 minute)",[116,779,781],{"className":118,"code":780,"language":120,"meta":121,"style":121},"sg application init --config application.yaml\n",[21,782,783],{"__ignoreMap":121},[125,784,785,787,790,793,796],{"class":127,"line":128},[125,786,109],{"class":131},[125,788,789],{"class":135}," application",[125,791,792],{"class":135}," init",[125,794,795],{"class":242}," --config",[125,797,798],{"class":135}," application.yaml\n",[116,800,805],{"className":801,"code":803,"language":804,"meta":121},[802],"language-text","application.yaml: valid (genesis\u002Fv1). registered hello on cluster lab.\n","text",[21,806,803],{"__ignoreMap":121},[14,808,809,812,813,815],{},[21,810,811],{},"init"," contacts nothing. It refuses a malformed spec, an unknown cluster, a ",[21,814,707],{}," that names a non-member, or a name that's already registered to another file or cluster. Bindings never move silently: to rename, use a new name.",[101,817,819],{"id":818},"_4-plan-1-minute","4. Plan (1 minute)",[116,821,823],{"className":118,"code":822,"language":120,"meta":121,"style":121},"sg application plan --config application.yaml\n",[21,824,825],{"__ignoreMap":121},[125,826,827,829,831,834,836],{"class":127,"line":128},[125,828,109],{"class":131},[125,830,789],{"class":135},[125,832,833],{"class":135}," plan",[125,835,795],{"class":242},[125,837,798],{"class":135},[14,839,840,843],{},[21,841,842],{},"plan"," observes every member and prints the ordered changes and a hash. It runs no health checks and changes nothing.",[116,845,848],{"className":846,"code":847,"language":804,"meta":121},[802],"Application hello on cluster lab — plan: 4 change(s).\n  1  instances.web            medium instance hello-web-0 is absent on node-a; instance hello-web-1 is absent on node-b\n  2  app.health               none   run every declared instance's exec health argv before load balancer activation\n  3  lb.edge                  high   create owned load balancer edge on node-c; backends …; listen 100.64.0.13:8088; …\n  4  app.verify               none   verify workstation reachability and the load balancer listeners before success\nPlan hash: 3f1c…\nPlan only: no health command, verification or host change ran.\n",[21,849,847],{"__ignoreMap":121},[14,851,852,853,856],{},"The two ",[21,854,855],{},"none"," rows are gates, not changes: health before the load balancer takes traffic, and reachability from your workstation before the deploy counts.",[101,858,860],{"id":859},"_5-deploy-5-minutes","5. Deploy (5 minutes)",[116,862,864],{"className":118,"code":863,"language":120,"meta":121,"style":121},"sg application deploy --config application.yaml\n",[21,865,866],{"__ignoreMap":121},[125,867,868,870,872,875,877],{"class":127,"line":128},[125,869,109],{"class":131},[125,871,789],{"class":135},[125,873,874],{"class":135}," deploy",[125,876,795],{"class":242},[125,878,798],{"class":135},[14,880,881,884],{},[21,882,883],{},"deploy"," builds its own fresh plan, shows it and asks:",[116,886,889],{"className":887,"code":888,"language":804,"meta":121},[802],"Deploy application hello: 4 ordered change(s)? [y\u002FN]:\n",[21,890,888],{"__ignoreMap":121},[14,892,893,894,363,897,899],{},"Type ",[21,895,896],{},"y",[21,898,109],{}," creates the instances on their members, attaches the proxy devices for port 8080, starts them, runs the health commands, configures HAProxy with the healthy backends, and finally checks every exposed port from your machine. If all of that passes:",[116,901,904],{"className":902,"code":903,"language":804,"meta":121},[802],"application hello run \u003Crun-id> finished: ok; 4 changes applied and verified; generation 1 recorded.\n",[21,905,903],{"__ignoreMap":121},[14,907,908,909,912],{},"If anything fails, the run stops and records it, and ",[690,910,911],{},"no generation is recorded",". Fix the cause and deploy again.",[101,914,916],{"id":915},"_6-look-at-it-2-minutes","6. Look at it (2 minutes)",[116,918,920],{"className":118,"code":919,"language":120,"meta":121,"style":121},"sg application status --config application.yaml\n",[21,921,922],{"__ignoreMap":121},[125,923,924,926,928,930,932],{"class":127,"line":128},[125,925,109],{"class":131},[125,927,789],{"class":135},[125,929,249],{"class":135},[125,931,795],{"class":242},[125,933,798],{"class":135},[116,935,938],{"className":936,"code":937,"language":804,"meta":121},[802],"Application hello — 2 instance(s) observed.\n\n  INSTANCE                             STATE      HEALTH             MEMBER       DRIFT\n  hello-web-0                          RUNNING    healthy            node-a       none\n  hello-web-1                          RUNNING    healthy            node-b       none\n",[21,939,937],{"__ignoreMap":121},[14,941,942,943,945,946,949,950,953,954,32,957,960],{},"HEALTH is the result of running your ",[21,944,750],{}," command just now. A stopped instance shows ",[21,947,948],{},"not-run"," and drift ",[21,951,952],{},"stopped","; a missing one shows ",[21,955,956],{},"absent",[21,958,959],{},"missing-instance",". It's read-only and never repairs drift. Now try it from your workstation:",[116,962,964],{"className":118,"code":963,"language":120,"meta":121,"style":121},"curl http:\u002F\u002F100.64.0.11:8080\u002F        # hello from hello-web-0\ncurl http:\u002F\u002F100.64.0.12:8080\u002F        # hello from hello-web-1\ncurl http:\u002F\u002F100.64.0.13:8088\u002F        # through HAProxy: either one\n",[21,965,966,977,987],{"__ignoreMap":121},[125,967,968,971,974],{"class":127,"line":128},[125,969,970],{"class":131},"curl",[125,972,973],{"class":135}," http:\u002F\u002F100.64.0.11:8080\u002F",[125,975,976],{"class":139},"        # hello from hello-web-0\n",[125,978,979,981,984],{"class":127,"line":167},[125,980,970],{"class":131},[125,982,983],{"class":135}," http:\u002F\u002F100.64.0.12:8080\u002F",[125,985,986],{"class":139},"        # hello from hello-web-1\n",[125,988,989,991,994],{"class":127,"line":173},[125,990,970],{"class":131},[125,992,993],{"class":135}," http:\u002F\u002F100.64.0.13:8088\u002F",[125,995,996],{"class":139},"        # through HAProxy: either one\n",[101,998,1000],{"id":999},"_7-restart-one-instance-1-minute","7. Restart one instance (1 minute)",[116,1002,1004],{"className":118,"code":1003,"language":120,"meta":121,"style":121},"sg application restart --config application.yaml web-0\n",[21,1005,1006],{"__ignoreMap":121},[125,1007,1008,1010,1012,1015,1017,1020],{"class":127,"line":128},[125,1009,109],{"class":131},[125,1011,789],{"class":135},[125,1013,1014],{"class":135}," restart",[125,1016,795],{"class":242},[125,1018,1019],{"class":135}," application.yaml",[125,1021,1022],{"class":135}," web-0\n",[116,1024,1027],{"className":1025,"code":1026,"language":804,"meta":121},[802],"Restart application instances hello-web-0? This interrupts service. [y\u002FN]:\n",[21,1028,1026],{"__ignoreMap":121},[14,1030,1031,1032,1034,1035,1037,1038,1040,1041,1044],{},"The selector can be a group (",[21,1033,613],{},"), an instance key (",[21,1036,472],{},") or a full name (",[21,1039,716],{},"). Leave it out to restart everything. A restart re-checks health but ",[690,1042,1043],{},"doesn't"," create a generation.",[1046,1047,1049],"note",{"kind":1048},"check",[684,1050,1051,1057,1063],{},[687,1052,1053,1056],{},[21,1054,1055],{},"sg application status"," shows every instance running and healthy.",[687,1058,1059,1062],{},[21,1060,1061],{},"curl http:\u002F\u002F100.64.0.13:8088\u002F"," answers through the load balancer.",[687,1064,1065,1066,719],{},"The deploy output said ",[21,1067,1068],{},"generation 1 recorded",[101,1070,1072],{"id":1071},"what-next","What next",[684,1074,1075,1082,1087,1094],{},[687,1076,1077,1081],{},[38,1078,1080],{"href":1079},"\u002Fdocs\u002Fapplications\u002Fday-two","Scale, upgrade and roll back"," this app.",[687,1083,1084,1086],{},[38,1085,362],{"href":361}," when a container isn't enough.",[687,1088,1089,1093],{},[38,1090,1092],{"href":1091},"\u002Fdocs\u002Fapplications\u002Fdatabases","Add a database"," for it to talk to.",[687,1095,1096,1097,719],{},"When you're done, ",[38,1098,1100],{"href":1099},"\u002Fdocs\u002Fapplications\u002Fdestroy","destroy it",[1102,1103,1104],"style",{},"html pre.shiki code .s_sBn, html code.shiki .s_sBn{--shiki-default:#FFB757}html pre.shiki code .sTRMh, html code.shiki .sTRMh{--shiki-default:#ADDCFF}html pre.shiki code .sQrFR, html code.shiki .sQrFR{--shiki-default:#BDC4CC}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}html pre.shiki code .sKpQp, html code.shiki .sKpQp{--shiki-default:#72F088}",{"title":121,"searchDepth":167,"depth":167,"links":1106},[1107,1108,1109,1110,1111,1112,1113,1114],{"id":103,"depth":167,"text":104},{"id":370,"depth":167,"text":371},{"id":776,"depth":167,"text":777},{"id":818,"depth":167,"text":819},{"id":859,"depth":167,"text":860},{"id":915,"depth":167,"text":916},{"id":999,"depth":167,"text":1000},{"id":1071,"depth":167,"text":1072},"A full walkthrough deploying two web containers behind an HAProxy load balancer, checking them, restarting one and reading every output line.","md",{},"\u002Fdocs\u002Fapplications\u002Ffirst-application",{"title":5,"description":1115},"docs\u002Fapplications\u002Ffirst-application","FV9FjbMeZ-SCjZUlMMKbX7v1dCrXAr93951lrY01mws",1796464240884]