cmc-sales/scripts/archive/run_docker_stg.sh

10 lines
562 B
Bash
Raw Normal View History

2020-07-13 23:19:21 -07:00
ID=$(docker ps -qf ancestor='cmc:stg')
2020-07-13 23:00:05 -07:00
docker kill $ID
sleep 1
2020-10-30 23:17:17 -07:00
docker run -d --restart always -p 127.0.0.1:9999:80 \
2020-07-13 23:00:05 -07:00
--mount type=bind,source=/home/cmc/staging/app/webroot/pdf,target=/var/www/cmc-sales/app/webroot/pdf \
--mount type=bind,source=/home/cmc/staging/app/webroot/attachments_files,target=/var/www/cmc-sales/app/webroot/attachments_files \
--mount type=bind,source=/home/cmc/staging/vault/emails,target=/var/www/emails \
--mount type=bind,source=/home/cmc/staging/vault/vaultmsgs,target=/var/www/vaultmsgs \
cmc:stg