{"id":23550177,"url":"https://github.com/douglaspimentel/postgres-docker","last_synced_at":"2026-01-24T13:10:27.372Z","repository":{"id":269197152,"uuid":"905241550","full_name":"DouglasPimentel/postgres-docker","owner":"DouglasPimentel","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-19T14:40:07.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-10T16:04:34.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DouglasPimentel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-18T12:42:06.000Z","updated_at":"2024-12-19T14:41:09.000Z","dependencies_parsed_at":"2025-04-02T20:45:33.853Z","dependency_job_id":null,"html_url":"https://github.com/DouglasPimentel/postgres-docker","commit_stats":null,"previous_names":["douglaspimentel/postgres-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouglasPimentel%2Fpostgres-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouglasPimentel%2Fpostgres-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouglasPimentel%2Fpostgres-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DouglasPimentel%2Fpostgres-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DouglasPimentel","download_url":"https://codeload.github.com/DouglasPimentel/postgres-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254359092,"owners_count":22058043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-26T10:13:52.445Z","updated_at":"2026-01-24T13:10:22.339Z","avatar_url":"https://github.com/DouglasPimentel.png","language":null,"readme":"# Postgres e pgAdmin com Docker\n\nEste repositório contém os arquivos de configuração necessários para criar um ambiente de desenvolvimento local com Postgres e pgAdmin utilizando Docker.\n\nImages do Docker utilizadas:\n- [Postgres](https://hub.docker.com/_/postgres)\n- [pgAdmin](https://hub.docker.com/r/elestio/pgadmin)\n\n## Requisitos\n\nDocker Desktop instalado e em funcionamento. Se você ainda não tem o Docker instalado, você pode seguir as instruções oficiais de instalação para a sua plataforma: [Docker Desktop](https://www.docker.com/products/docker-desktop/).\n\n## Preparando o ambiente\n\n1. Verifique se o Docker está em execução. Você pode verificar isso procurando pelo ícone do Docker na barra de tarefas. Se não estiver rodando, inicie o Docker Desktop.\n   \n2. Abra seu terminal e execute o comando para criar uma rede chamada **local-network**:\n\n```bash\n  docker network create local-network\n```\n\n3. Clone o repositório.\n\n```bash\n   git clone https://github.com/DouglasPimentel/postgres-docker.git\n```\n\n4. Entre no diretório do projeto.\n\n```bash\n   cd postgres-docker\n```\n\n5. Crie um .env na raiz do diretório com as seguintes variáveis:\n\n```bash\n  DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres\n  POSTGRES_USER=postgres\n  POSTGRES_DB=postgres\n  POSTGRES_PASSWORD=postgres\n  PGADMIN_DEFAULT_EMAIL=user@localhost.com\n  PGADMIN_DEFAULT_PASSWORD=admin\n  PGADMIN_LISTEN_PORT=8080\n```\n\n6. Execute os containers com Compose:\n\n```bash \n   docker compose --env-file=.env up -d\n```\n\nApós rodar o comando, o Docker vai fazer o download das imagens, e iniciar os containers. Para testar se o serviço do pgAdmin está funcionando, acesse http://localhost:8080 no seu navegador. Haverá uma tela de autenticação, você deverá informar o email e senha que você definiu no arquivo .env.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglaspimentel%2Fpostgres-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouglaspimentel%2Fpostgres-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglaspimentel%2Fpostgres-docker/lists"}