{"id":20548042,"url":"https://github.com/aleroxac/fullcycle-desafio-docker","last_synced_at":"2026-04-13T19:31:03.236Z","repository":{"id":159050135,"uuid":"586580594","full_name":"aleroxac/fullcycle-desafio-docker","owner":"aleroxac","description":"Implementação do desafio do módulo de Docker do Curso Full Cycle 3.0 ministrado pelo Wesley Williams.","archived":false,"fork":false,"pushed_at":"2023-01-09T04:08:11.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T05:24:41.487Z","etag":null,"topics":["docker","docker-compose","golang","mysql","nginx","node-js"],"latest_commit_sha":null,"homepage":"https://github.com/aleroxac/fullcycle-desafio-docker","language":"JavaScript","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/aleroxac.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":"2023-01-08T16:32:09.000Z","updated_at":"2023-01-21T23:51:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd025426-2f38-43ca-a64e-bbafe0c8f895","html_url":"https://github.com/aleroxac/fullcycle-desafio-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aleroxac/fullcycle-desafio-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleroxac%2Ffullcycle-desafio-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleroxac%2Ffullcycle-desafio-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleroxac%2Ffullcycle-desafio-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleroxac%2Ffullcycle-desafio-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleroxac","download_url":"https://codeload.github.com/aleroxac/fullcycle-desafio-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleroxac%2Ffullcycle-desafio-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"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":["docker","docker-compose","golang","mysql","nginx","node-js"],"created_at":"2024-11-16T02:11:47.068Z","updated_at":"2026-04-13T19:31:03.217Z","avatar_url":"https://github.com/aleroxac.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fullcycle-desafio-docker\nImplementação do desafio do módulo de Docker do Curso Full Cycle 3.0 ministrado pelo Wesley Williams.\n\n\n## Estrutura de diretórios do \"Desafio Docker\"\n```\n├── README.md\n└── src\n    ├── db\n    │   ├── init.sql\n    │   └── mysqld.cnf\n    ├── docker-compose.yaml\n    ├── go\n    │   ├── Dockerfile\n    │   ├── go.mod\n    │   └── main.go\n    ├── nginx\n    │   └── nginx.conf\n    └── node\n        ├── Dockerfile\n        ├── index.js\n        └── package.json\n```\n\n\n\n---\n\n\n\n\n## Desafio Docker - Go\n![desafio-go](assets/2023-01-08_23-57.png)\n- [x] Criar um app em golang, que imprima a mensagem `\"Full Cycle Rocks!!\"` na saída padrão\n- [x] Dockerizar o app, de modo que a `imagem final tenha menos que 2MB`\n- [x] Publicar a imagem no Dockerhub usando o padrão `\u003cmeu-usuario-do-dockerhub\u003e/fullcycle`\n\n\n## Estrutura de diretórios\n```\n├── Dockerfile\n├── go.mod\n└── main.go\n```\n\n\n### Como rodar o projeto\n``` shell\n#### Construa você mesmo a imagem e suba um container \ndocker build -f src/go -t me/fullcycle:desafio-docker-go src/go\ndocekr run me/fullcycle:desafio-docker-go\n\n#### Suba um container usando imagem já publicada no DockerHub\ndocker run aleroxac/fullcycle:desafio-docker-go\n```\n\n\n\n---\n\n\n\n## Desafio Docker - Nginx com Node.js\n![desafio-nginx-com-nodejs](assets/2023-01-08_23-58.png)\n- [x] Criar um docker-compose.yaml com um service para o mysql\n    - [x] Criar docker-compose.yaml\n    - [x] Criar database\n    - [x] Criar tabela `people`\n\n- [x] Criar um app em nodejs, que:\n    - [x] Rode na porta 8080\n    - [x] Tenha uma rota com os seguintes comportamentos:\n        - [x] Insira um registro no banco de dados mysql\n        - [x] Imprima a mensagem `\u003ch1\u003eFull Cycle Rocks!\u003c/h1\u003e`\n        - [x] Liste os nomes cadastradis no banco de dados mysql\n- [x] Dockerizar o app em nodejs\n- [x] Adicionar um service no docker-compose.yaml para o app\n\n- [x] Adicionar um service no docker-compose.yaml para o nginx\n    - [x] Criar arquivo de configuração do nginx\n    - [x] Adicionar um service no docker-compose.yaml para o nginx\n\n\n## Estrutura de diretórios\n```\n└── src\n    ├── db\n    │   ├── init.sql\n    │   └── mysqld.cnf\n    ├── docker-compose.yaml\n    ├── nginx\n    │   └── nginx.conf\n    └── node\n        ├── Dockerfile\n        ├── index.js\n        └── package.json\n```\n\n\n### Como rodar o projeto\n``` shell\n### Suba os containers\ndocker-compose -f src/docker-compose.yaml up -d --build\n\n### Cadastre seu nome do banco de dados e veja a lista de pessoas cadastradas em formato HTML\nopen http://localhost/people/augusto\n\n## Veja a lista de pessoas cadastradas em formato JSON\ncurl -sv http://localhost/people\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleroxac%2Ffullcycle-desafio-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleroxac%2Ffullcycle-desafio-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleroxac%2Ffullcycle-desafio-docker/lists"}