1
0
mirror of https://github.com/tiyn/amphora-wiki.git synced 2025-04-23 17:27:48 +02:00

docker: changed to docker-compose

This commit is contained in:
tiyn 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 #!/bin/sh
docker stop amphora-wiki docker-compose down
docker rm amphora-wiki docker-compose up -d
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