Skip to content

Commit 27de12d

Browse files
committed
- fix:issue #7: move entrypoint commands to docker-compose
1 parent 1e0b0d2 commit 27de12d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ version: '3.8'
33
services:
44
app-server-django:
55
build: ./
6-
command: python manage.py runserver 0.0.0.0:8000
6+
command: >
7+
sh -c "python manage.py flush --no-input &&
8+
python manage.py migrate &&
9+
python manage.py runserver 0.0.0.0:8000"
710
volumes:
811
- ./:/usr/src/app/
912
ports:

0 commit comments

Comments
 (0)