Skip to content

Commit

Permalink
Add restart flag to API docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Oct 30, 2023
1 parent 14e1835 commit e51c389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down
4 changes: 3 additions & 1 deletion infrastructure/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit e51c389

Please sign in to comment.