{"id":22962998,"url":"https://github.com/richardcarls/docker-known","last_synced_at":"2026-05-18T05:39:20.117Z","repository":{"id":89624040,"uuid":"98755991","full_name":"richardcarls/docker-known","owner":"richardcarls","description":"A Docker image for Known, the social publishing platform.","archived":false,"fork":false,"pushed_at":"2017-07-30T14:59:45.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T18:19:50.702Z","etag":null,"topics":["docker-image","indieweb","known"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/richardcarls.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":"2017-07-29T20:02:22.000Z","updated_at":"2017-07-30T15:01:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"184ec5ef-2a58-45fa-8157-5a1a4f469084","html_url":"https://github.com/richardcarls/docker-known","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcarls%2Fdocker-known","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcarls%2Fdocker-known/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcarls%2Fdocker-known/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcarls%2Fdocker-known/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardcarls","download_url":"https://codeload.github.com/richardcarls/docker-known/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246750364,"owners_count":20827695,"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":["docker-image","indieweb","known"],"created_at":"2024-12-14T19:19:23.952Z","updated_at":"2026-05-18T05:39:15.056Z","avatar_url":"https://github.com/richardcarls.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-known\n\nA Docker image for [Known](https://withknown.com/), the social publishing platform. This image installs Known v0.9.9.\n\nThis is a multi-process image based on the official [php:fpm-alpine](https://hub.docker.com/_/php/) image. This image includes the necessary PHP extensions for running Known; just link your database container.\n\nPHP fastcgi is exposed on port `9000` running the default configuration, while nginx is exposed on the standard HTTP port `80` using the configuration provided by Known.\n\n## Quick start\n\n```bash\ndocker run -d --name db -v /some/host/dir:/var/lib/mysql -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_DATABASE=known -e MYSQL_USER=known_user -e MYSQL_PASSWORD=known_pass mariadb\n\ndocker run -d --link mariadb:db -v /some/host/dir:/Uploads -p 8080:80 richardcarls/known\n```\n\n## Configuration\n\nThe image comes with a default configuration for Known:\n\n```INI\n# config.ini\ndatabase = MySQL\ndbhost = db\ndbname = known\ndbuser = known_user\ndbpass = known_pass\nuploadpath = /Uploads/\nsessionname = known\n```\n\nConfiguration settings can be set via environment variables.\n\n- `KNOWN_DATABASE`\n- `KNOWN_DBHOST`\n- `KNOWN_DBNAME`\n- `KNOWN_DBUSER`\n- `KNOWN_DBPASS`\n- `KNOWN_UPLOADPATH`\n- `KNOWN_SESSIONNAME`\n\n## Database\n\nKnown requires a database; link your Known container to a running database container. The default configuration expects MySQL or MariaDB at the host `db`. This image does not create the initial database or database user, it has to exist at runtime.\n\n```bash\ndocker run -d --link some-mysql:db -p 8080:80 richardcarls/known\n```\n\n### SQLite\n\nSQLite3 can be used instead of a separate database container. Set `KNOWN_DATABASE=Sqlite`. You will also want to set `KNOWN_DBNAME` to the name and path of the database file (ie: `/data/sqlite.db`) and ensure it is persisted outside the container.\n\n```bash\ndocker run -d -v /some/host/dir:/data -e KNOWN_DATABASE=Sqlite -e KNOWN_DBNAME=/data/sqlite.db -p 8080:80 richardcarls/known\n```\n\n### PostgreSQL\n\n[PostgreSQL](https://www.postgresql.org/) can also be used with Known (though I cannot get it to work, personally). Set `KNOWN_DATABASE=Postgres` and link your running PostgreSQL container to use this configuration.\n\n```bash\ndocker run -d --link some-pgsql:db -e KNOWN_DATABASE=Postgres -p 8080:80 richardcarls/known\n```\n\n### MongoDB\n\n[MongoDB](https://www.mongodb.com/) might also work but its use is deprecated at this time. Set `KNOWN_DATABASE=MongoDB` to use this configuration.\n\n## Uploads\n\nKnown stores uploaded media in the specified `uploadpath` (`/Uploads/` by default). You can specify a Docker volume or host mount here to preserve uploads.\n\n```bash\ndocker run -d --link some-mysql:db -v /some/host/dir:/Uploads -p 8080:80 richardcarls/known\n```\n\nMake sure your `uploadpath` is readable and writeable by the `www-data` (uid 33) user. This image does not modify ownership of mounted volumes.\n\n## Usage notes\n\n### SSL\n\nYou will have to provide a custom `nginx.conf` if you wish to serve over https directly, or use a reverse proxy container like [traefik](https://hub.docker.com/_/traefik/).\n\n### Mail\n\nThis image does not have a mail server, so you may wish to configure Known with a 3rd party SMTP server for things like sending invites to users.\n\n### Themes and plugins\n\nKnown comes bundled with a selection of great themes and plugins. You can substitute your own by mounting volumes to `/var/www/html/Themes` and `/var/www/html/IdnoPlugins`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardcarls%2Fdocker-known","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardcarls%2Fdocker-known","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardcarls%2Fdocker-known/lists"}