From 58f7917662ff92a3712289acccff8310c8f1baff Mon Sep 17 00:00:00 2001 From: yyamashita Date: Tue, 30 Jun 2026 22:29:07 +0900 Subject: Add strongSwan IKEv2 VPN service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - vpn/: Dockerfile, docker-compose.yml, swanctl.conf.tpl, entrypoint.sh - install.sh: Caddy 証明書流用 + コンテナ起動 - renew-cert.sh: 証明書更新 + swanctl ホットリロード - caddy/Caddyfile: vpn.yyamashita.com 追加(Let's Encrypt 証明書取得用) - post-receive: vpn/deploy.sh を追加 - setup-route53.py: WEB_SUBDOMAINS に vpn を追加 Co-Authored-By: Claude Sonnet 4.6 --- vpn/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 vpn/Dockerfile (limited to 'vpn/Dockerfile') diff --git a/vpn/Dockerfile b/vpn/Dockerfile new file mode 100644 index 0000000..86644be --- /dev/null +++ b/vpn/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:3.21 +RUN apk add --no-cache strongswan iptables iproute2 gettext +COPY swanctl.conf.tpl /etc/swanctl/swanctl.conf.tpl +COPY strongswan.conf /etc/strongswan.conf +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] -- cgit v1.2.3