We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee74d0c commit 6db1cc7Copy full SHA for 6db1cc7
2 files changed
Dockerfile
@@ -9,8 +9,8 @@ WORKDIR /home/node/coc-api
9
# Copy contents of local folder to `WORKDIR`
10
COPY . .
11
12
-# Install nodemon globally
13
-RUN npm install --global nodemon db-migrate db-migrate-mysql
+# Install npm packages globally
+RUN npm install --global nodemon db-migrate db-migrate-mysql wait-on
14
15
# Install dependencies from package.json
16
RUN npm install --quiet --no-warnings
docker-compose.yml
@@ -37,4 +37,4 @@ services:
37
depends_on:
38
- db
39
- mailhog
40
- command: bash -c "sleep 5 && db-migrate up && npm run start"
+ command: bash -c "wait-on tcp:db:3306 && db-migrate up && npm run start"
0 commit comments