mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-15 10:45:01 +00:00
refactor: use prebuilt image in standalone compose
This commit is contained in:
parent
f9007a710b
commit
44452ee573
2 changed files with 5 additions and 8 deletions
1
build-image.sh
Executable file
1
build-image.sh
Executable file
|
@ -0,0 +1 @@
|
|||
docker build -t dragory/zeppelin --build-arg API_URL=https://zeppelin.gg/api .
|
|
@ -33,14 +33,10 @@ services:
|
|||
- "${STANDALONE_WEB_PORT:?Missing STANDALONE_WEB_PORT}:443"
|
||||
|
||||
migrate:
|
||||
image: dragory/zeppelin
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
build: &build
|
||||
context: .
|
||||
args:
|
||||
# Used at compile-time by dashboard
|
||||
API_URL:
|
||||
environment: &env
|
||||
- NODE_ENV=production
|
||||
- DB_HOST=mysql
|
||||
|
@ -55,10 +51,10 @@ services:
|
|||
command: ["npm", "run", "migrate-prod"]
|
||||
|
||||
api:
|
||||
image: dragory/zeppelin
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
build: *build
|
||||
restart: on-failure
|
||||
environment: *env
|
||||
env_file:
|
||||
|
@ -67,10 +63,10 @@ services:
|
|||
command: ["npm", "run", "start-api-prod"]
|
||||
|
||||
bot:
|
||||
image: dragory/zeppelin
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
build: *build
|
||||
restart: on-failure
|
||||
environment: *env
|
||||
env_file:
|
||||
|
@ -79,10 +75,10 @@ services:
|
|||
command: ["npm", "run", "start-bot-prod"]
|
||||
|
||||
dashboard:
|
||||
image: dragory/zeppelin
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
build: *build
|
||||
restart: on-failure
|
||||
environment: *env
|
||||
env_file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue