-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
59 lines (57 loc) · 2.01 KB
/
compose.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
# Simplism IDE
services:
simplisme-ide:
container_name: simplism-ide
# https
#entrypoint: ["code-server", "--cert", "/workspace/certs/${TLS_CERT}", "--cert-key", "/workspace/certs/${TLS_CERT_KEY}", "--auth", "none", "--host", "0.0.0.0", "--port", "${CODER_HTTP_PORT}", "/workspace"]
# http
entrypoint: ["code-server", "--auth", "none", "--host", "0.0.0.0", "--port", "${CODER_HTTP_PORT}", "/workspace"]
environment: &env
- ABOUT="Simplism Environment with Coder"
- CODER_HTTP_PORT=${CODER_HTTP_PORT}
- XDG_DATA_HOME=/workspace/.config
# used by the https mode
- LOCAL_DOMAIN=${LOCAL_DOMAIN}
- TLS_CERT=${TLS_CERT}
- TLS_CERT_KEY=${TLS_CERT_KEY}
build: &build
args:
- GO_ARCH=${GO_ARCH}
- GO_VERSION=${GO_VERSION}
- TINYGO_ARCH=${TINYGO_ARCH}
- TINYGO_VERSION=${TINYGO_VERSION}
- EXTISM_ARCH=${EXTISM_ARCH}
- EXTISM_VERSION=${EXTISM_VERSION}
- SIMPLISM_VERSION=${SIMPLISM_VERSION}
- SIMPLISM_DISTRO=${SIMPLISM_DISTRO}
- NODE_DISTRO=${NODE_DISTRO}
- NODE_VERSION=${NODE_VERSION}
- HELM_VERSION=${HELM_VERSION}
- HELM_ARCH=${HELM_ARCH}
- K9S_VERSION=${K9S_VERSION}
- K9S_ARCH=${K9S_ARCH}
- CODER_VERSION=${CODER_VERSION}
- CODER_ARCH=${CODER_ARCH}
- USER_NAME=simplism
context: ./.docker
dockerfile: Dockerfile
platform: linux/${LINUX_ARCH}
volumes: &volumes
- ~/.ssh:/home/simplism/.ssh
- ~/.kube:/home/simplism/.kube
- .:/workspace
- ~/.gitconfig:/etc/gitconfig
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
ports:
- ${CODER_HTTP_PORT}:${CODER_HTTP_PORT} # Code Server HTTP port
simplism-ide-tasks:
depends_on:
- simplisme-ide
container_name: simplism-ide-tasks
entrypoint: ["/workspace/.tasks/init.sh"]
environment: *env
build: *build
platform: linux/${LINUX_ARCH}
volumes: *volumes