From 4dbd75a1a96d29c5d50f2a7a0474cd5a5eb95fa5 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sun, 4 Jul 2021 18:08:26 +0000 Subject: [PATCH] docker: changed to docker-compose --- docker-compose.yml | 10 ++++++++++ rebuild.sh | 10 ++-------- 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100755 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100755 index 0000000..dd811fa --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "2" + +services: + amphora-wiki: + build: . + restart: unless-stopped + ports: + - "5000:5000" + environment: + - "FLASK_ENV=production" diff --git a/rebuild.sh b/rebuild.sh index 622248f..e25ba58 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -1,9 +1,3 @@ #!/bin/sh -docker stop amphora-wiki -docker rm amphora-wiki -docker build . -t tiyn/amphora-wiki -docker run --name amphora-wiki \ - --restart unless-stopped \ - -p "5000:5000" \ - -e FLASK_ENV=development \ - -d tiyn/amphora-wiki +docker-compose down +docker-compose up -d