test_compos/docker-compose.yml

23 lines
493 B
YAML
Raw Permalink Normal View History

2024-12-25 17:27:43 +02:00
version: '3.8'
2024-12-19 03:19:36 +02:00
2024-12-25 17:27:43 +02:00
services:
flask-app:
2024-12-19 03:19:36 +02:00
build:
2024-12-25 17:27:43 +02:00
context: .
dockerfile: Dockerfile
2024-12-19 03:19:36 +02:00
ports:
2024-12-19 03:31:58 +02:00
- "5000:5000"
2024-12-25 17:27:43 +02:00
volumes:
2024-12-25 17:50:48 +02:00
- /home/1:/app
2024-12-25 17:27:43 +02:00
environment:
- FLASK_ENV=development
2024-12-25 17:50:48 +02:00
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
"