Обновить docker-compose.yml
This commit is contained in:
parent
57e2b423e8
commit
f9cccb75d1
|
@ -8,6 +8,15 @@ services:
|
|||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- .:/app
|
||||
- /home/1:/app
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
command: >
|
||||
sh -c "
|
||||
if [ ! -d /home/1/test_compos ]; then
|
||||
git clone https://git.xander.cx.ua/Xanders25/test_compos.git /home/1/test_compos;
|
||||
else
|
||||
cd /home/1/test_compos && git pull;
|
||||
fi &&
|
||||
python /app/app.py
|
||||
"
|
||||
|
|
Loading…
Reference in New Issue