-
Notifications
You must be signed in to change notification settings - Fork 233
/
Copy pathdeploy-ssh-tunnel.yaml
73 lines (70 loc) · 1.47 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
---
version: "2.0"
services:
web:
image: benbusby/whoogle-search:latest
# See https://github.com/benbusby/whoogle-search for full list of supported environment variables
# env:
# - WHOOGLE_USER=user
# - WHOOGLE_PASS=password
expose:
- port: 5000
to:
- service: ssh
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:
size: 1Gi
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