Docker: Always run migrations on compose up
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -2,6 +2,6 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
bot:
|
||||
command: sh -c "npm config set cache /app/.npm_cache --global && npm install && npm run dev"
|
||||
command: sh -c "npm config set cache /app/.npm_cache --global && npm install && npx sequelize db:migrate && npm run dev"
|
||||
ports:
|
||||
- "9229:9229"
|
||||
+1
-1
@@ -3,7 +3,7 @@ version: "3.7"
|
||||
services:
|
||||
bot:
|
||||
build: .
|
||||
command: sh -c "npm config set cache /app/.npm_cache --global && npm install && node ."
|
||||
command: sh -c "npm config set cache /app/.npm_cache --global && npm install && npx sequelize db:migrate && node ."
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
|
||||
Reference in new issue
Block a user