From 44452ee573cb6bab908ce2140e884533994d7792 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 1 Jun 2025 02:43:36 +0000 Subject: [PATCH] refactor: use prebuilt image in standalone compose --- build-image.sh | 1 + docker-compose.standalone.yml | 12 ++++-------- 2 files changed, 5 insertions(+), 8 deletions(-) create mode 100755 build-image.sh diff --git a/build-image.sh b/build-image.sh new file mode 100755 index 00000000..5b47f6d3 --- /dev/null +++ b/build-image.sh @@ -0,0 +1 @@ +docker build -t dragory/zeppelin --build-arg API_URL=https://zeppelin.gg/api . diff --git a/docker-compose.standalone.yml b/docker-compose.standalone.yml index fc28978d..b4e328b3 100644 --- a/docker-compose.standalone.yml +++ b/docker-compose.standalone.yml @@ -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: