Setup Danswer on AWS EC2
m7g.xlarge
with 500GB of EBS storage.
For the below guide, we will assume that you’ve chosen to use AWS Linux with the recommended m7g.xlarge
instance.
www.<YOUR_DOMAIN>
and ensure that this also takes the user to your EC2 instance.
git
, docker
, and docker compose
. For Amazon Linux 2023, this can be done with the following:
.env
file, you can copy past the following (filling in the missing fields as needed):
.env.nginx
file, put the following:
docker-compose -f docker-compose.dev.yml -p danswer-stack up -d --build --force-recreate
instead of the above. You can then access Danswer from the IP address from earlier or from the
instance Public IPv4 DNS
provided on the instance’s page in the AWS console.docker logs danswer-stack-api_server-1 -f
; once you see a log for
INFO: Application startup complete.
then everything should be good to go).