{"id":28160028,"url":"https://github.com/zounar/docker-compose-boilerplate","last_synced_at":"2025-05-15T10:13:37.444Z","repository":{"id":286271758,"uuid":"234765457","full_name":"zounar/docker-compose-boilerplate","owner":"zounar","description":"Boilerplate for Docker Compose which solves common use-case problems","archived":false,"fork":false,"pushed_at":"2020-06-16T16:16:50.000Z","size":22,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T11:34:13.565Z","etag":null,"topics":["boilerplate","centos","debian","docker","docker-compose","docker-container","docker-image","docker-images","dockerfile","dockerfiles","fedora","permissions","ubuntu"],"latest_commit_sha":null,"homepage":null,"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/zounar.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":"2020-01-18T16:46:53.000Z","updated_at":"2024-08-11T00:32:21.000Z","dependencies_parsed_at":"2025-04-05T11:34:18.005Z","dependency_job_id":"6a1c31d1-1962-452f-afaf-28ee7592f547","html_url":"https://github.com/zounar/docker-compose-boilerplate","commit_stats":null,"previous_names":["zounar/docker-compose-boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zounar%2Fdocker-compose-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zounar%2Fdocker-compose-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zounar%2Fdocker-compose-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zounar%2Fdocker-compose-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zounar","download_url":"https://codeload.github.com/zounar/docker-compose-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319685,"owners_count":22051076,"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":["boilerplate","centos","debian","docker","docker-compose","docker-container","docker-image","docker-images","dockerfile","dockerfiles","fedora","permissions","ubuntu"],"created_at":"2025-05-15T10:12:19.958Z","updated_at":"2025-05-15T10:13:37.428Z","avatar_url":"https://github.com/zounar.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker-Compose boilerplate\n\nBoilerplate for Docker Compose which solves common use-case problems. See [snippets.md](snippets.md)\nfor some useful code that you can use in Dockerfiles. To install Docker, see \n[docker installation guide](docker-installation.md).\n\nThis project contains 5 Docker containers: `alpine`, `centos`, `debian`, `fedora` and `ubuntu`. \nYou can run them one-by-one or all at once and start playing and tinkering with them.\n\n### How to run\n**Initialize the project (Linux only):**  \n`./init-docker.sh`\n\n**Run (ubuntu) container**  \n`docker-compose up -d ubuntu`\n\n**Shell into (ubuntu) container**  \n`docker-compose exec ubuntu bash`\n\n**Start tinkering with the container!**  \n`echo \"Hello, I am $(uname -n) container :]\"`\n\n**Beware**: The directory of this project is mapped into the working directory of the container!\nPay attention not do delete or break your own files.\n\n### Edit the Dockerfile\nAll changes that you do in the containers are irreversibly lost once you remove containers. To keep\nthem persistent, you need to edit the Dockerfile that is stored in a directory named by the Linux distribution.\n\nAfter you change the Dockerfile, you need to rebuild and (re)start the container by:  \n`docker-compose up --build -d ubuntu`\n\n### Useful commands\n**Run single container**  \n`docker-compose up -d ubuntu`\n\n**Run all containers**  \n`docker-compose up -d`\n\n**Shell into running container**  \n`docker-compose exec ubuntu bash`\n\n**Shell into container as root**  \n`docker-compose exec -u root ubuntu bash`\n\n**Stop single container**  \n`docker-compose stop ubuntu`\n\n**Stop all containers**  \n`docker-compose stop`\n\n**Remove single container**  \n`docker-compose down ubuntu`\n\n**Remove all containers**  \n`docker-compose down`\n\n**Build all containers**  \n`docker-compose build` \n\n**Rebuild all containers**  \n`docker-compose build --no-cache --pull`\n\n**Watch logs of single container**  \n`docker-compose logs -f ubuntu`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzounar%2Fdocker-compose-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzounar%2Fdocker-compose-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzounar%2Fdocker-compose-boilerplate/lists"}