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:
10
docker-compose.yml
Executable file
10
docker-compose.yml
Executable file
@@ -0,0 +1,10 @@
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
amphora-wiki:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- "FLASK_ENV=production"
|
||||
10
rebuild.sh
10
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
|
||||
|
||||
Reference in New Issue
Block a user