Обновить docker-compose.yml

This commit is contained in:
Xanders25 2024-12-25 17:50:48 +02:00
parent 57e2b423e8
commit f9cccb75d1
1 changed files with 10 additions and 1 deletions

View File

@ -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
"