We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c9f79 commit 50fca4aCopy full SHA for 50fca4a
Dockerfile
@@ -19,6 +19,7 @@ RUN apt-get install -y netcat-openbsd
19
20
# Copy the rest of the application code
21
COPY . .
22
+RUN chmod 777 wait-for-it.sh
23
24
# Set environment variables
25
ENV PYTHONDONTWRITEBYTECODE 1
docker-compose.yml
@@ -2,7 +2,7 @@ services:
2
web:
3
build: .
4
command: >
5
- sh -c "python manage.py runserver 0.0.0.0:8000"
+ sh -c "./wait-for-it.sh db 3306 -- python manage.py runserver 0.0.0.0:8000"
6
volumes:
7
- .:/app
8
ports:
0 commit comments