mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
version: '3'
|
|
services:
|
|
|
|
gitpod:
|
|
image: eu.gcr.io/gitpod-core-dev/build/gitpod-k3s:${VERSION:-latest}
|
|
command: --flannel-backend=none --disable-network-policy
|
|
privileged: true
|
|
volumes:
|
|
- ./calico.yaml:/var/lib/rancher/k3s/server/manifests/calico.yaml
|
|
- gitpod-docker:/var/gitpod/docker
|
|
- gitpod-docker-registry:/var/gitpod/docker-registry
|
|
- gitpod-minio:/var/gitpod/minio
|
|
- gitpod-mysql:/var/gitpod/mysql
|
|
- gitpod-workspaces:/var/gitpod/workspaces
|
|
- ./values:/values
|
|
# - ./certs:/certs
|
|
ports:
|
|
- 443:443
|
|
- 80:80
|
|
environment:
|
|
- DOMAIN=${DOMAIN}
|
|
- K3S_CLUSTER_SECRET=qWo6sn3VWERh3dBBQniPLTqtZzEHURsriJNhTqus
|
|
- K3S_NODE_NAME=main
|
|
- REMOVE_NETWORKPOLICIES=true
|
|
|
|
node1:
|
|
image: rancher/k3s:v1.20.0-k3s2
|
|
privileged: true
|
|
volumes:
|
|
- gitpod-workspaces-node1:/var/gitpod/workspaces
|
|
- ./node-entrypoint.sh:/entrypoint
|
|
environment:
|
|
- K3S_URL=https://gitpod:6443
|
|
- K3S_CLUSTER_SECRET=qWo6sn3VWERh3dBBQniPLTqtZzEHURsriJNhTqus
|
|
- K3S_NODE_NAME=node1
|
|
entrypoint: /entrypoint
|
|
|
|
node2:
|
|
image: rancher/k3s:v1.20.0-k3s2
|
|
privileged: true
|
|
volumes:
|
|
- gitpod-workspaces-node2:/var/gitpod/workspaces
|
|
- ./node-entrypoint.sh:/entrypoint
|
|
environment:
|
|
- K3S_URL=https://gitpod:6443
|
|
- K3S_CLUSTER_SECRET=qWo6sn3VWERh3dBBQniPLTqtZzEHURsriJNhTqus
|
|
- K3S_NODE_NAME=node2
|
|
entrypoint: /entrypoint
|
|
|
|
volumes:
|
|
gitpod-docker:
|
|
gitpod-docker-registry:
|
|
gitpod-minio:
|
|
gitpod-mysql:
|
|
gitpod-workspaces:
|
|
gitpod-workspaces-node1:
|
|
gitpod-workspaces-node2:
|