From cc6c66305f654fd57f69072d6ff9300dd39f94cf Mon Sep 17 00:00:00 2001 From: ixa2 <162011041+ixa2@users.noreply.github.com> Date: Tue, 5 Mar 2024 02:02:37 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E3=81=A8=E3=83=87?= =?UTF-8?q?=E3=83=97=E3=83=AD=E3=82=A4=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 3 +++ deploy.sh | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 build.sh create mode 100644 deploy.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..8e28fdd --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker build -t taiko . diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..95272c4 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +docker run --detach \ + --name taiko-mongo \ + --volume taiko-mongo:/data/db \ + mongo + +docker run --detach \ + --name taiko-redis \ + --volume taiko-redis:/data \ + redis + +docker run --detach \ + --name taiko \ + --link taiko-mongo \ + --link taiko-redis \ + --env TAIKO_WEB_MONGO_HOST=taiko-mongo \ + --env TAIKO_WEB_REDIS_HOST=taiko-redis \ + --env LETSENCRYPT_HOST=taikoapp.uk \ + --env VIRTUAL_HOST=taikoapp.uk \ + --env VIRTUAL_PORT=8080 \ + --publish 9999:8080 \ + taiko