{"id":18326495,"url":"https://github.com/luisenmarroquin/compose-webservices","last_synced_at":"2025-04-06T00:31:33.017Z","repository":{"id":52232932,"uuid":"217431049","full_name":"LuisEnMarroquin/compose-webservices","owner":"LuisEnMarroquin","description":"Multiple docker-compose examples behind jwilder:nginx-proxy","archived":false,"fork":false,"pushed_at":"2020-09-24T15:40:38.000Z","size":91,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T14:23:08.938Z","etag":null,"topics":["compose","docker","dockerfile","gitlab","jenkins","letsencrypt","netdata","nginx","portainer","whoami"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LuisEnMarroquin.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}},"created_at":"2019-10-25T02:05:23.000Z","updated_at":"2023-02-21T17:38:24.000Z","dependencies_parsed_at":"2022-09-11T10:04:15.375Z","dependency_job_id":null,"html_url":"https://github.com/LuisEnMarroquin/compose-webservices","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fcompose-webservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fcompose-webservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fcompose-webservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisEnMarroquin%2Fcompose-webservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuisEnMarroquin","download_url":"https://codeload.github.com/LuisEnMarroquin/compose-webservices/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419597,"owners_count":20936009,"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":["compose","docker","dockerfile","gitlab","jenkins","letsencrypt","netdata","nginx","portainer","whoami"],"created_at":"2024-11-05T19:07:04.699Z","updated_at":"2025-04-06T00:31:28.005Z","avatar_url":"https://github.com/LuisEnMarroquin.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compose-webservices\n\nMultiple webservices using `docker-compose` behind `nginx-proxy`\n\n## Create `.env` file\n\nCreate a file to store your environment variables\n\n```shell\n# Email for letsencrypt cert renew\nEMAIL=me@localhost.com\n# You server's domain name\nDOMAIN=localhost.com\n```\n\n## Start services\n\nAt first you need to start the `nginx` service, it includes `nginx`, `letsencrypt` and `whoami` containers\n\n```shell\ndocker-compose -p nginx -f docker-compose.yml  up -d --force-recreate --remove-orphans\n```\n\n### Coder\n\n```shell\ndocker-compose -p code -f docker-code.yml up -d --build --force-recreate --remove-orphans\n```\n\n### Gitlab\n\n```shell\ndocker-compose -p gitlab -f docker-gitlab.yml up -d --force-recreate --remove-orphans\n```\n\n### Jenkins\n\n```shell\ndocker-compose -p jenkins -f docker-jenkins.yml up -d --force-recreate --remove-orphans\n```\n\n### Netdata\n\n```shell\ndocker-compose -p netdata -f docker-netdata.yml up -d --force-recreate --remove-orphans\n```\n\n### Portainer\n\n```shell\ndocker-compose -p portainer -f docker-portainer.yml up -d --force-recreate --remove-orphans\n```\n\nGenerate new htpasswd, edit `command` property on `docker-portainer.yml`\n\n```shell\ndocker run --rm httpd:2.4-alpine htpasswd -nbB admin \u003cpassword\u003e | cut -d \":\" -f 2\n```\n\n* If any password passed though cli has an `$` you must escape it using double `$$`\n\n### Node\n\nA simple docker-compose example combining Nginx, Node and Mongo, this works by itself and shouldn't run with the other nginx instance. This part was obtained from [this post](https://medium.com/faun/learn-docker-in-5-days-day-5-docker-compose-11af7b9298db).\n\n```shell\ndocker-compose -p node -f docker-node.yml up -d --force-recreate --remove-orphans\n```\n\n* See nginx running at: [localhost](http://localhost.com)\n* See node app running at: [localhost/node](http://localhost.com/node)\n\n## Test if it works locally\n\nUse **cURL** it works you'll see the something like **I'm 999999999**:\n\n```shell\ncurl -H \"Host: whoami.localhost.com\" localhost\n```\n\nIf you have **Windows** or **macOS** add the following on:\n\n* macOS: `/etc/hosts`\n* Windows: `C:\\Windows\\System32\\drivers\\etc\\hosts`\n\n```shell\n127.0.0.1 localhost.com\n127.0.0.1 code.localhost.com\n127.0.0.1 whoami.localhost.com\n127.0.0.1 gitlab.localhost.com\n127.0.0.1 jenkins.localhost.com\n127.0.0.1 netdata.localhost.com\n127.0.0.1 portainer.localhost.com\n127.0.0.1 wordpress.localhost.com\n127.0.0.1 db.wordpress.localhost.com\n```\n\nThen visit [whoami.localhost.com](http://whoami.localhost.com)` with your favorite browser\n\n## Digital Ocean\n\n[Create a Droplet](https://m.do.co/c/856dc39cd657)\n\n## Watch large workspace VSCode\n\n* Follow this [guide](https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisenmarroquin%2Fcompose-webservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisenmarroquin%2Fcompose-webservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisenmarroquin%2Fcompose-webservices/lists"}