Fix docker-compose
This commit is contained in:
parent
4f64eacbd7
commit
c2ec1ba5ce
@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py makemigrations --noinput
|
||||
python manage.py migrate --noinput
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user