使い捨て実行環境 https://beta.fogtype.com
Find a file
Nebel 8c99d2a78a
All checks were successful
deploy / main (push) Successful in 25s
Update caddy:2.8.4-alpine Docker digest to 716f31d
2024-07-24 13:01:32 +00:00
.forgejo/workflows context "beta" already exists 2024-01-03 21:40:41 +09:00
etc create beta project 2023-01-02 00:40:21 +09:00
example Update caddy:2.8.4-alpine Docker digest to 716f31d 2024-07-24 13:01:32 +00:00
.gitignore add deploy workflow 2024-01-03 21:34:51 +09:00
ansible.cfg create beta project 2023-01-02 00:40:21 +09:00
compose.yml Update portainer/portainer-ce Docker tag to v2.20.3 2024-06-19 17:01:35 +00:00
Dockerfile Update caddy:2.8.4-alpine Docker digest to 716f31d 2024-07-24 13:01:32 +00:00
LICENSE create beta project 2023-01-02 00:40:21 +09:00
Makefile set comment 2024-01-03 22:21:32 +09:00
README.md add deploy workflow 2024-01-03 21:34:51 +09:00
renovate.json use config:recommended 2024-06-20 05:16:14 +00:00
setup.yml create beta project 2023-01-02 00:40:21 +09:00

β

beta.fogtype.com
使い捨て実行環境

Usage

  1. beta.fogtype.com に SSH でアクセス
  2. caddycaddy.reverse_proxy ラベルを与えて Docker コンテナを実行
    • 例: --label=caddy=example.beta.fogtype.com --label=caddy.reverse_proxy={{upstreams}}
  3. caddy ネットワークにアタッチ

詳しい使い方は caddy-docker-proxy を参照

Example

example/compose.yml

docker context create --docker=host=ssh://ubuntu@beta.fogtype.com beta
docker context use beta
docker compose --project-directory=example up -d

Setup

sudo apt install ansible
ansible-playbook setup.yml

詳しい構成は setup.yml を参照

Registration

$ make .deploy_key
secrets.KNOWN_HOSTS
SSH known_hosts file
secrets.DEPLOY_KEY
SSH identity file