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: