Skip to content

Commit 50fca4a

Browse files
committed
add ./wait-for-it.sh db 3306 --
1 parent f7c9f79 commit 50fca4a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get install -y netcat-openbsd
1919

2020
# Copy the rest of the application code
2121
COPY . .
22+
RUN chmod 777 wait-for-it.sh
2223

2324
# Set environment variables
2425
ENV PYTHONDONTWRITEBYTECODE 1

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
web:
33
build: .
44
command: >
5-
sh -c "python manage.py runserver 0.0.0.0:8000"
5+
sh -c "./wait-for-it.sh db 3306 -- python manage.py runserver 0.0.0.0:8000"
66
volumes:
77
- .:/app
88
ports:

0 commit comments

Comments
 (0)