23 lines
493 B
YAML
23 lines
493 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
flask-app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- /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
|
|
"
|