{"id":23092898,"url":"https://github.com/whatishedoing/docker-aws-node-postgres","last_synced_at":"2026-05-04T01:34:29.383Z","repository":{"id":152090942,"uuid":"202423759","full_name":"WhatIsHeDoing/docker-aws-node-postgres","owner":"WhatIsHeDoing","description":"A Docker image designed to be used in AWS CodeBuild to build Node.js apps and connect to PostgreSQL databases.","archived":false,"fork":false,"pushed_at":"2019-09-30T08:46:32.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T22:02:46.978Z","etag":null,"topics":["aws","docker","nodejs","postgresql"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/whatishedoing/docker-aws-node-postgres","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WhatIsHeDoing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-14T20:47:51.000Z","updated_at":"2019-12-03T12:07:05.000Z","dependencies_parsed_at":"2023-09-16T09:45:35.377Z","dependency_job_id":null,"html_url":"https://github.com/WhatIsHeDoing/docker-aws-node-postgres","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WhatIsHeDoing/docker-aws-node-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhatIsHeDoing%2Fdocker-aws-node-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhatIsHeDoing%2Fdocker-aws-node-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhatIsHeDoing%2Fdocker-aws-node-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhatIsHeDoing%2Fdocker-aws-node-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WhatIsHeDoing","download_url":"https://codeload.github.com/WhatIsHeDoing/docker-aws-node-postgres/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhatIsHeDoing%2Fdocker-aws-node-postgres/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","docker","nodejs","postgresql"],"created_at":"2024-12-16T21:39:52.997Z","updated_at":"2026-05-04T01:34:29.379Z","avatar_url":"https://github.com/WhatIsHeDoing.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-aws-node-postgres\n\n[![Docker Pulls](https://img.shields.io/docker/pulls/whatishedoing/docker-aws-node-postgres?style=for-the-badge)][site]\n[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/whatishedoing/docker-aws-node-postgres?style=for-the-badge)][site]\n\n## 👋 Introduction\n\nA [Docker] image designed to be used in [AWS] [CodeBuild] to build [Node.js] apps and connect to\n[PostgreSQL] databases.\n\n## 🏃‍ Usage\n\nThe following ordered setup instructions use [Terraform] to configure AWS.\n\n### CodeBuild\n\nCreate a CodeBuild; note the `image` attribute of `environment`:\n\n```ruby\nresource \"aws_codebuild_project\" \"api\" {\n  name          = \"api\"\n  description   = \"Builds an API and recreates a test database.\"\n  build_timeout = 20\n  service_role  = \"${aws_iam_role.codebuild.arn}\"\n\n  artifacts {\n    type                = \"S3\"\n    location            = \"${aws_s3_bucket.bucket.id}\"\n    packaging           = \"ZIP\"\n    encryption_disabled = true\n  }\n\n  cache {\n    type = \"LOCAL\"\n\n    modes = [\n      \"LOCAL_DOCKER_LAYER_CACHE\",\n      \"LOCAL_SOURCE_CACHE\"\n    ]\n  }\n\n  environment {\n    compute_type    = \"BUILD_GENERAL1_MEDIUM\"\n    image           = \"whatishedoing/docker-aws-node-postgres\"\n    privileged_mode = false\n    type            = \"LINUX_CONTAINER\"\n\n    # Set any Postgres environment variables...\n    # https://www.postgresql.org/docs/current/libpq-envars.html\n    environment_variable {\n      name  = \"PG_HOST\"\n      value = \"${aws_db_instance.db.address}\"\n    }\n\n    environment_variable {\n      name  = \"S3_ARTIFACTS_BUCKET\"\n      value = \"${aws_s3_bucket.bucket.id}\"\n    }\n  }\n\n  source {\n    buildspec       = \"buildspec.yml\"\n    git_clone_depth = 1\n    location        = \"${aws_codecommit_repository.api.clone_url_http}\"\n    type            = \"CODECOMMIT\"\n  }\n\n  logs_config {\n    cloudwatch_logs {\n      group_name  = \"${aws_cloudwatch_log_group.codebuild.name}\"\n      stream_name = \"${aws_cloudwatch_log_stream.codebuild.name}\"\n    }\n  }\n\n  tags = {\n    Environment = \"tools\"\n    Terraform   = true\n  }\n}\n```\n\n### Source Control\n\nIn the root of the source control repository, add a `buildspec.yml`:\n\n```yml\nversion: 0.2\n\nphases:\n  install:\n    commands:\n      - yarn install --frozen-lockfile\n\n  build:\n    commands:\n      - yarn start\n```\n\n[AWS]: https://aws.amazon.com/\n[CodeBuild]: https://aws.amazon.com/codebuild/\n[CodePipeline]: https://aws.amazon.com/codepipeline/\n[Docker]: https://www.docker.com/\n[Node.js]: https://nodejs.org/\n[PostgreSQL]: https://www.postgresql.org/\n[site]: https://hub.docker.com/r/whatishedoing/docker-aws-node-postgres\n[Terraform]: https://www.terraform.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatishedoing%2Fdocker-aws-node-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhatishedoing%2Fdocker-aws-node-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatishedoing%2Fdocker-aws-node-postgres/lists"}