bind mount

test
dan 2020-10-28 00:11:00 -06:00
parent f159d04987
commit 82886951f2
3 changed files with 2 additions and 9 deletions

View File

@ -53,7 +53,7 @@ router.get("/:id",function(req,res){
}); });
router.get("/download/:id",function(req,res){ router.get("/download/:id",function(req,res){
var finalStorage = '/home/ofbbutte/webapps/ofbstatic/media/'; var finalStorage = '/media/';// '/home/ofbbutte/webapps/ofbstatic/media/';
dbSermons.getSermon(req.params.id,function(error,sermon){ dbSermons.getSermon(req.params.id,function(error,sermon){
if (error){ if (error){
res.status(404).json({"status":404,"message":"Error processing request"}); res.status(404).json({"status":404,"message":"Error processing request"});

View File

@ -1,7 +0,0 @@
version: '3'
services:
web:
build: .
ports:
- "8111:8111"

View File

@ -10,7 +10,7 @@ steps:
commands: commands:
- docker build --tag ofb_angular . - docker build --tag ofb_angular .
- docker rm -f ofb_angular || true - docker rm -f ofb_angular || true
- docker run --name ofb_angular --restart always -d -p "8111:8111" ofb_angular - docker run --name ofb_angular --restart always -v /home/admin/web/static.danabsher.com/public_html/media:/media -d -p "8111:8111" ofb_angular
volumes: volumes: