initial deployment

This commit is contained in:
2024-03-31 14:00:53 -05:00
commit 6918c077fd
7 changed files with 450 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
version: '3.8'
services:
interview-buddy-api:
container_name: interview-buddy-api
image: {{image}}
environment:
{{#env}}
- {{key}}={{value}}
{{/env}}
ports:
- "8188:8000"
restart: unless-stopped

13
host/pull-deploy-api.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Login
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 891377299307.dkr.ecr.us-east-1.amazonaws.com
# Stop current running
docker stop interview-buddy-api
# Pull latest
docker compose pull
# Start newest
docker compose -f docker-compose-api.yaml up -d