From 9e621305984043cb246164aa7e901515a56bd5d3 Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Thu, 9 May 2024 19:23:23 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=97=E3=83=AD=E3=82=A4=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E3=82=92=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E3=81=AB?= =?UTF-8?q?=E4=BB=BB=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 7 ------ README.md | 51 ++++------------------------------------ public/upload/index.html | 4 ++-- public/upload/style.css | 6 ++--- public/upload/upload.js | 16 ++++++------- 5 files changed, 17 insertions(+), 67 deletions(-) diff --git a/.dockerignore b/.dockerignore index 375e29e..f111784 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,11 +1,4 @@ /.git -/.gitignore - -/Dockerfile -/.dockerignore - /__pycache__ -/README.md - /public/songs diff --git a/README.md b/README.md index 8f64c1b..797ee1f 100644 --- a/README.md +++ b/README.md @@ -14,16 +14,16 @@ pip install -r requirements.txt ```bash docker run --detach \ - --name taiko-mongo-debug \ - --volume taiko-mongo-debug:/data/db \ + --name taiko-web-mongo-debug \ + --volume taiko-web-mongo-debug:/data/db \ --publish 27017:27017 \ mongo ``` ```bash docker run --detach \ - --name taiko-redis-debug \ - --volume taiko-redis-debug:/data \ + --name taiko-web-redis-debug \ + --volume taiko-web-redis-debug:/data \ --publish 6379:6379 \ redis ``` @@ -36,49 +36,6 @@ flask run ## デプロイ -Dockerイメージをビルドします - -```bash -docker build -t taiko . -``` - -データベースを起動します - -```bash -docker run --detach \ - --name taiko-mongo \ - --volume taiko-mongo:/data/db \ - mongo -``` - -```bash -docker run --detach \ - --name taiko-redis \ - --volume taiko-redis:/data \ - redis -``` - 今すぐデプロイ! - https://taikoapp.uk/ - -```bash -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 \ - --volume songs:/app/public/songs \ - --env LETSENCRYPT_HOST=taikoapp.uk \ - --env VIRTUAL_HOST=taikoapp.uk \ - --env VIRTUAL_PORT=8000 \ - taiko -``` - -終了するには - -```bash -docker stop taiko-mongo taiko-redis taiko -docker rm -f taiko-mongo taiko-redis taiko -``` diff --git a/public/upload/index.html b/public/upload/index.html index c91f283..6c43997 100644 --- a/public/upload/index.html +++ b/public/upload/index.html @@ -4,8 +4,8 @@