docker: changed to docker-compose

dependabot/pip/src/flask-2.3.2
tiyn 4 years ago
parent ec6d1f15cf
commit 4dbd75a1a9

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

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

Loading…
Cancel
Save