forked from akash-network/awesome-akash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-ssh-tunnel.yaml
83 lines (80 loc) · 1.72 KB
/
deploy-ssh-tunnel.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
version: "2.0"
services:
web:
image: ghcr.io/spacepotahto/qbittorrent:1.0.0
expose:
# Web app
- port: 8080
as: 8080
to:
- service: ssh
# File server
- port: 5000
as: 5000
to:
- service: ssh
# Optional listening port
# See also https://github.com/qbittorrent/qBittorrent/wiki/Explanation-of-Options-in-qBittorrent#Listening_Port
- port: 6881
as: 6881
to:
- global: true
ssh:
image: ghcr.io/spacepotahto/openssh-server:1.0.0
depends_on:
- web
env:
# See all options at https://github.com/linuxserver/docker-openssh-server#usage
# Note supplying key for authentication is generally safer than password based authentication
# - PUBLIC_KEY=yourpublickey
- PASSWORD_ACCESS=true
- USER_PASSWORD=yourpassword
- USER_NAME=username
expose:
- port: 2222
as: 2222
to:
- global: true
profiles:
compute:
web:
resources:
cpu:
units: 1.0
memory:
size: 1Gi
storage:
# Specify [<Expected Total Files Download Size> + 1]Gi
size: 2Gi
ssh:
resources:
cpu:
units: 0.5
memory:
size: 512Mi
storage:
size: 512Mi
placement:
akash:
attributes:
host: akash
signedBy:
anyOf:
- "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
pricing:
web:
denom: uakt
amount: 10000
ssh:
denom: uakt
amount: 10000
deployment:
web:
akash:
profile: web
count: 1
ssh:
akash:
profile: ssh
count: 1