Обновить docker-compose.yml
This commit is contained in:
parent
7adabce7da
commit
d8f9aae9f8
|
@ -1,25 +1,13 @@
|
|||
services:
|
||||
git_cloner:
|
||||
image: alpine/git
|
||||
volumes:
|
||||
- /data/py:/repo
|
||||
command: >
|
||||
sh -c "
|
||||
if [ ! -d /repo/.git ]; then
|
||||
git clone https://git.xander.cx.ua/Xanders25/test_compos.git /repo &&
|
||||
echo 'Repository cloned';
|
||||
else
|
||||
echo 'Repository already exists';
|
||||
fi;
|
||||
"
|
||||
version: '3.8'
|
||||
|
||||
app:
|
||||
services:
|
||||
flask-app:
|
||||
build:
|
||||
context: /data/py
|
||||
dockerfile: Dockerfile
|
||||
working_dir: /app
|
||||
command: python app.py
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "5000:5000"
|
||||
depends_on:
|
||||
- git_cloner
|
||||
volumes:
|
||||
- .:/app
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
|
|
Loading…
Reference in New Issue