1
0
mirror of https://github.com/tiyn/amphora-wiki.git synced 2025-10-29 18:01:16 +01:00

docker: changed to docker-compose

This commit is contained in:
2021-07-04 18:08:26 +00:00
parent ec6d1f15cf
commit 4dbd75a1a9
2 changed files with 12 additions and 8 deletions

10
docker-compose.yml Executable file
View File

@@ -0,0 +1,10 @@
version: "2"
services:
amphora-wiki:
build: .
restart: unless-stopped
ports:
- "5000:5000"
environment:
- "FLASK_ENV=production"

View File

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