Skip to content

Instantly share code, notes, and snippets.

@umq
Created May 19, 2017 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umq/96b9a70da97aefdd8da18db8f61521b2 to your computer and use it in GitHub Desktop.
Save umq/96b9a70da97aefdd8da18db8f61521b2 to your computer and use it in GitHub Desktop.
PostgREST Sample configuration for AWS Elastic Beanstalk (Single Container Docker)
files:
"/var/lib/postgrest/postgrest.conf" :
mode: "000644"
owner: root
group: root
content: |
db-uri = "postgres://app_user:password@postgres:5432/app_db"
db-schema = "public"
db-anon-role = "app_user"
jwt-secret = "changeme"
max-rows = 1000
{
"AWSEBDockerrunVersion": "1",
"Image": {"Name": "begriffs/postgrest:v0.4.1.0"},
"Ports": [{"ContainerPort": "3000"}],
"Volumes": [{
"HostDirectory": "/var/lib/postgrest",
"ContainerDirectory": "/etc"
}],
"Logging": "/var/log/nginx"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment