{"id":17693736,"url":"https://github.com/yktoo/commento-docker-compose","last_synced_at":"2025-05-13T03:25:49.504Z","repository":{"id":146672175,"uuid":"197591450","full_name":"yktoo/commento-docker-compose","owner":"yktoo","description":"Install a self-hosted Commento instance in a couple of minutes","archived":false,"fork":false,"pushed_at":"2023-03-11T10:19:40.000Z","size":10,"stargazers_count":17,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T06:12:42.847Z","etag":null,"topics":["commento","docker","docker-compose","how-to"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/yktoo.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-07-18T13:22:32.000Z","updated_at":"2024-07-30T22:23:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f5db85a-2858-4fbe-9644-7fcdf01aff8c","html_url":"https://github.com/yktoo/commento-docker-compose","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/yktoo%2Fcommento-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yktoo%2Fcommento-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yktoo%2Fcommento-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yktoo%2Fcommento-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yktoo","download_url":"https://codeload.github.com/yktoo/commento-docker-compose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253865632,"owners_count":21975950,"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":["commento","docker","docker-compose","how-to"],"created_at":"2024-10-24T13:46:43.746Z","updated_at":"2025-05-13T03:25:49.480Z","avatar_url":"https://github.com/yktoo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"**WARNING:**\n\n\u003cdiv style=\"background-color: #fdf469; padding: 1rem;\"\u003e\nCommento is discontinued and not getting updates anymore. I recommend switching to \u003ca href=\"https://comentario.app/\"\u003eComentario\u003c/a\u003e, a fork of Commento that I'm actively developing.\n\u003c/div\u003e\n\n---\n\n# Auto-deployable Commento server\n\nThis is a sample repository containing a self-sufficient [Commento](https://commento.io/) instance running on [Docker Compose](https://docs.docker.com/compose/) and using free auto-renewable SSL/TLS certificates provided by [Let's Encrypt](https://letsencrypt.org/).\n\n💡 **Curious about how this works? Read a [detailed explanation here](https://yktoo.solutions/blog/2019/07/28-self-hosting-commento-with-docker-compose/).**\n\nUsing this as a starting point, you can set up a self-hosted Commento instance in a matter of minutes.\n\n## Prerequisites\n\n1. You own a domain and a Linux server\n2. You have `root` shell access to the server\n\n## Step-by-step instructions\n\n1. Install [Docker](https://docs.docker.com/install/) and [docker-compose](https://docs.docker.com/compose/install/)\n2. Clone the project code to `/opt/commento`, for example:\n    ```bash\n    sudo git clone https://github.com/yktoo/commento-docker-compose.git /opt/commento\n    ```\n3. Edit `/opt/commento/docker-compose.yml` and update the environment variable values appropriately\n4. Recommended: pre-build and pre-pull the required images:\n    ```bash\n    cd /opt/commento\n    docker-compose -p commento pull\n    docker-compose -p commento build\n    ```\n5. Create systemd service symlink, reload the daemon, enable and start the service:\n    ```bash\n    sudo ln -s /opt/commento/etc/commento.service /etc/systemd/system/commento.service\n    sudo systemctl daemon-reload\n    sudo systemctl enable commento.service\n    sudo systemctl start commento.service\n    ```\n6. Check the service health with `systemctl status commento.service`\n7. Recommended: check in your changes to a new git repository for future use\n\n## Cleaning up\n\nTo stop and clean containers up manually (comments and SSL/TLD certificates are always retained):\n\n```bash\ncd /opt/commento\ndocker-compose -p commento down -v\n```\n\n## Upgrading\n\nTo rebuild the Docker images, for example if you want to upgrade to a newer version of Commento/PostgreSQL/Nginx:\n```bash\ncd /opt/commento\ndocker-compose -p commento pull\ndocker-compose -p commento build\n# Restart the service\nsudo systemctl restart commento.service\n```\n\n## Backing up\n\nTo back up the database, the easiest way is to make a dump of the `commento` database.\n\nFirst, set up a passwordless login to your server using public key authentication.\n\nThen you can export the entire `commento` database using the command:\n\n```bash\nssh YOUR_SERVER_HOST docker exec -t commento_postgres_1 pg_dump -U postgres -d commento \u003e /path/to/dump.sql\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyktoo%2Fcommento-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyktoo%2Fcommento-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyktoo%2Fcommento-docker-compose/lists"}