diff --git a/infrastructure/api-configuration/api-server-instance-user-data.tpl.sh b/infrastructure/api-configuration/api-server-instance-user-data.tpl.sh index a89fc0e73..3bc0edc7e 100644 --- a/infrastructure/api-configuration/api-server-instance-user-data.tpl.sh +++ b/infrastructure/api-configuration/api-server-instance-user-data.tpl.sh @@ -154,6 +154,7 @@ docker run \ --name dr_api \ --platform linux/amd64 \ --publish 8081:8081 \ + --restart always \ --tty \ --volume "$STATIC_VOLUMES":/tmp/www/static \ "${dockerhub_repo}/${api_docker_image}" \ diff --git a/infrastructure/deploy.sh b/infrastructure/deploy.sh index 399a8533f..59c9b0e97 100755 --- a/infrastructure/deploy.sh +++ b/infrastructure/deploy.sh @@ -408,9 +408,11 @@ if [[ -n $container_running ]]; then --log-opt awslogs-region=$AWS_REGION \ --log-opt awslogs-stream=log-stream-api-$USER-$STAGE \ --name=dr_api \ + --platform linux/amd64 \ + --publish 8081:8081 \ + --restart always \ --tty \ --volume /tmp/volumes_static:/tmp/www/static \ - --publish 8081:8081 \ $DOCKERHUB_REPO/$API_DOCKER_IMAGE \ /bin/sh -c /home/user/collect_and_run_uwsgi.sh"