Fix docker-compose

This commit is contained in:
Stephan Porada 2020-07-30 09:50:35 +02:00
parent 4f64eacbd7
commit c2ec1ba5ce
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
#!/bin/bash
python manage.py collectstatic --noinput
python manage.py makemigrations --noinput
python manage.py migrate --noinput

View File

@ -1,4 +1,4 @@
version: '3.7'
version: '3.5'
services:
web:
@ -12,7 +12,7 @@ services:
env_file: .env
depends_on:
- db
command: bash -c /wait-for-it/wait-for-it.sh db:5432 --strict --timeout=0
command: ["./wait-for-it.sh", "db:5432", "--strict", "--timeout=0"]
db:
env_file: .env
environment:
@ -31,4 +31,4 @@ services:
ports:
- 8000:80
depends_on:
- web
- web