http://yusukeiwaki.hatenablog.com/entry/2019/07/13/my-cloud9-alternative
dockerを入れる。
curl https://raw.githubusercontent.com/YusukeIwaki/cloud-pine/master/install-docker-ce.sh | bash
docker swarmでクラスタを組む。
docker network create --driver overlay --internal cloud-pine-master
docker network create --driver overlay --internal cloud-pine-admin
cd reverse_proxy
docker stack deploy --compose-file docker-compose.yml reverse_proxy
cd admin
docker stack deploy --compose-file docker-compose.yml admin
cd workspace
docker stack deploy --compose-file docker-compose.yml playground1
→ playground1.ide.c9work.net でCloud9ワークスペースが使用可能になる → ワークスペースの8080番ポートで公開されたものが playground1.preview.c9work.netで見れる
docker stack rm playground2
DOCKER_HOST=ssh://c9work-slave1 docker volume rm playground2_workspace-data # docker service ps でノードを予め特定しておく必要あり。