Обновить docker-compose.yml
This commit is contained in:
parent
57e2b423e8
commit
f9cccb75d1
|
@ -8,6 +8,15 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- /home/1:/app
|
||||||
environment:
|
environment:
|
||||||
- FLASK_ENV=development
|
- 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