diff --git a/docker-compose.yml b/docker-compose.yml index 259e0e3..a93bf75 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,7 @@ services: msdt: build: . + platform: ${PLATFORM:-linux/amd64} container_name: msdt environment: - APP_ENV=${APP_ENV:-prod} diff --git a/scripts/deploy_image.sh b/scripts/deploy_image.sh index e3b46ee..7949597 100644 --- a/scripts/deploy_image.sh +++ b/scripts/deploy_image.sh @@ -4,6 +4,7 @@ set -euo pipefail ENV=${1:-test} IMAGE=${2:-marketingsystemdatatool_msdt:latest} CMD=${3:-up} +PLATFORM=${PLATFORM:-linux/amd64} ROOT_DIR=$(cd "$(dirname "$0")/.." && pwd) @@ -17,6 +18,7 @@ case "$CMD" in up) docker rm -f msdt >/dev/null 2>&1 || true docker run -d --name msdt \ + --platform "$PLATFORM" \ -p 8077:8077 \ -e APP_ENV="$ENV" \ -e MARKETING_DB_HOST="${MARKETING_DB_HOST:-}" \ @@ -41,4 +43,3 @@ case "$CMD" in echo "usage: deploy_image.sh [up|down|restart|logs]" >&2 exit 1 ;; esac -