ビルドとデプロイコマンドを追加

This commit is contained in:
ixa2 2024-03-05 02:02:37 +00:00
parent 29cfcfdeaf
commit cc6c66305f
2 changed files with 26 additions and 0 deletions

3
build.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker build -t taiko .

23
deploy.sh Normal file
View File

@ -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