Akash with TLS Example
An example Akash deployment with TLS step by step example. We will use Ghost, a very simple web app, for the demo.

Deploy Ghost

Make sure to specify the hostname you control, in this example it is “ghost.akash.pro”. Set the “https” when setting the “url” environment variable – this will get picked by the Ghost blogging platform so it knows to serve these HTTPS links.
When you deploy with 80/tcp port exposed in Akash, the nginx-ingress-controller on the provider will automatically get 443/tcp exposed too. This makes Full TLS termination possible.
If you are not familiar with Akash deployments, visit the documentation for the desktop app Akashlytics Deploy as an easy way to get started.
1
---
2
version: "2.0"
3
4
services:
5
ghost:
6
image: ghost:4.36.3-alpine
7
env:
8
- 'url=https://ghost.akash.pro'
9
expose:
10
- port: 2368
11
as: 80
12
accept:
13
- "ghost.akash.pro"
14
to:
15
- global: true
16
17
profiles:
18
compute:
19
ghost:
20
resources:
21
cpu:
22
units: 1.0
23
memory:
24
size: 512Mi
25
storage:
26
size: 512Mi
27
placement:
28
akash:
29
signedBy:
30
anyOf:
31
- "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
32
pricing:
33
ghost:
34
denom: uakt
35
amount: 100
36
37
deployment:
38
ghost:
39
akash:
40
profile: ghost
41
count: 1
Copied!
Copy link
Contents
Deploy Ghost