-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathokteto-stacks.yml
102 lines (98 loc) · 2.72 KB
/
okteto-stacks.yml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# This Docker Compose file is for Okteto Cloud, as configured in the
# okteto-pipeline.yml
version: 3
services:
code-server:
# Our starter pack image is also available at GHCR as same namespace and repo
# and Docker Hub as codeserverboilerplates as its namespace. See their image tags
# section to pick the tags you want to use.
image: quay.io/code-server-boilerplates/starter-pack:develop
volumes:
- code-server-projectHome:/workspace:rw
ports:
- 8080:8080
dns:
# We're fans of Cloudflare DNS, so we'll use 1.1.1.1 for this one.
# Prefer to use Google Public DNS? Replace these below.
# But since Okteto Build service ignore these values, this should
# be fine.
- 1.1.1.1
- 1.0.0.1
# Please see https://cdrs-docs.rtapp.tk/config-vars-compose for configuring
# your code-server instance
environment:
# Replace ${GIT_REPO} with your repo URL if you copied this Docker Compose file
# into the Deploy from UI workflow, under the From Compose option.
GIT_REPO: ${GIT_REPO}
GIT_USER_NAME: ${GIT_USER_NAME}
GIT_USER_EMAIL: ${GIT_USER_EMAIL}
# GitHub
GITHUB_LOGIN: ${GITHUB_LOGIN}
GITHUB_TOKEN: ${GITHUB_TOKEN}
#GHE_HOST: "https://github.com"
# GitLab
GITLAB_LOGIN: ${GITLAB_LOGIN}
GITLAB_TOKEN: ${GITLAB_TOKEN}
#GITLAB_HOST: "https://gitlab.com"
# Check the logs for the generated password, right before
# code-server starts
GENERATE_PASSWORD: true
cap_add:
- ALL
cap_drop:
- NET_ADMIN
- SYS_ADMIN
volumes:
code-server-projectHome:
driver_opts:
size: 1Gi
# We don't want to do Ngnix proxying stuff for Okteto Cloud users,
# but these endpoints is abit mess as only the port ranges of 3000-3010
# are only allowed to be accessible through devenv-X-NAMESPACE.cloud.okteto.net.
# As usual, we're gonna use Cloudflare Tunnel (or other options at your liking)
# for other ports.
endpoints:
devenv-0:
- path: /
service: code-server
port: 3000
devenv-1:
- path: /
service: code-server
port: 3001
devenv-2:
- path: /
service: code-server
port: 3002
devenv-3:
- path: /
service: code-server
port: 3003
devenv-4:
- path: /
service: code-server
port: 3004
devenv-5:
- path: /
service: code-server
port: 3005
devenv-6:
- path: /
service: code-server
port: 3006
devenv-7:
- path: /
service: code-server
port: 3007
devenv-8:
- path: /
service: code-server
port: 3008
devenv-9:
- path: /
service: code-server
port: 3009
devenv-10:
- path: /
service: code-server
port: 3010