diff --git a/docker-compose.yml b/docker-compose.yml index 4ccb866..a16aff3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 + "