3
0
Fork 0
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:
Dragory 2025-06-01 02:43:36 +00:00
parent f9007a710b
commit 44452ee573
No known key found for this signature in database
2 changed files with 5 additions and 8 deletions

1
build-image.sh Executable file
View file

@ -0,0 +1 @@
docker build -t dragory/zeppelin --build-arg API_URL=https://zeppelin.gg/api .

View file

@ -33,14 +33,10 @@ services:
- "${STANDALONE_WEB_PORT:?Missing STANDALONE_WEB_PORT}:443" - "${STANDALONE_WEB_PORT:?Missing STANDALONE_WEB_PORT}:443"
migrate: migrate:
image: dragory/zeppelin
depends_on: depends_on:
mysql: mysql:
condition: service_healthy condition: service_healthy
build: &build
context: .
args:
# Used at compile-time by dashboard
API_URL:
environment: &env environment: &env
- NODE_ENV=production - NODE_ENV=production
- DB_HOST=mysql - DB_HOST=mysql
@ -55,10 +51,10 @@ services:
command: ["npm", "run", "migrate-prod"] command: ["npm", "run", "migrate-prod"]
api: api:
image: dragory/zeppelin
depends_on: depends_on:
migrate: migrate:
condition: service_completed_successfully condition: service_completed_successfully
build: *build
restart: on-failure restart: on-failure
environment: *env environment: *env
env_file: env_file:
@ -67,10 +63,10 @@ services:
command: ["npm", "run", "start-api-prod"] command: ["npm", "run", "start-api-prod"]
bot: bot:
image: dragory/zeppelin
depends_on: depends_on:
migrate: migrate:
condition: service_completed_successfully condition: service_completed_successfully
build: *build
restart: on-failure restart: on-failure
environment: *env environment: *env
env_file: env_file:
@ -79,10 +75,10 @@ services:
command: ["npm", "run", "start-bot-prod"] command: ["npm", "run", "start-bot-prod"]
dashboard: dashboard:
image: dragory/zeppelin
depends_on: depends_on:
migrate: migrate:
condition: service_completed_successfully condition: service_completed_successfully
build: *build
restart: on-failure restart: on-failure
environment: *env environment: *env
env_file: env_file: