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