{"id":17042610,"url":"https://github.com/carstenkoenig/dockerdemo","last_synced_at":"2026-04-09T18:38:48.677Z","repository":{"id":149495848,"uuid":"142555415","full_name":"CarstenKoenig/DockerDemo","owner":"CarstenKoenig","description":"Demonstrates using Docker-Compose with Nginx, PostgreSQL and a simple Todo Web-App written in Haskell and Elm ","archived":false,"fork":false,"pushed_at":"2018-07-30T05:00:29.000Z","size":1138,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T04:46:53.365Z","etag":null,"topics":["docker","docker-compose","elm","haskell","nginx","todoapp"],"latest_commit_sha":null,"homepage":null,"language":"Elm","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/CarstenKoenig.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":"2018-07-27T09:14:46.000Z","updated_at":"2020-12-12T15:56:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"8dd0d1f8-4837-4ef1-900a-f692c8a1ec71","html_url":"https://github.com/CarstenKoenig/DockerDemo","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/CarstenKoenig%2FDockerDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarstenKoenig%2FDockerDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarstenKoenig%2FDockerDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarstenKoenig%2FDockerDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarstenKoenig","download_url":"https://codeload.github.com/CarstenKoenig/DockerDemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245044494,"owners_count":20551898,"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","docker-compose","elm","haskell","nginx","todoapp"],"created_at":"2024-10-14T09:17:57.077Z","updated_at":"2025-10-28T13:42:02.496Z","avatar_url":"https://github.com/CarstenKoenig.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo-App\n\nthis is a simple *TODO-App* demonstrating:\n\n- Haskell / Servant\n- Elm\n- Docker (-compose) with\n  - Nginx\n  - PostgreSQL\n  - compiled servant app\n\n## Backends\n\n- [Haskell](./server/Haskell)\n\n## Client\n\n- [Elm](./client/Elm)\n\n## Build\n\n### using docker\n\n- run `make docker-build` to build the service\n- run `make docker-run` to run the service attached\n- run `make docker-install` to run the service detached (background)\n- run `make docker-clean` to remove the service and the docker-volume\n\nonce the application runs you should be able to browse to `http:\\\\localhost:8070`\nand use the *todo-app*\n\n### local using stack\n\nrun `make deploy` to deploy the application to `./dist`\n\nthe application assumes a PostgreSQL-DB present and you have to provide\nthe following settings via environment-variables (postgres default behavior with connection-strings):\n\n- `PGUSER` the user that will connect to postgres\n- `PGPASSWORD` the password for the connecting user\n- `PGHOST` hostname of the database (probably `localhost`)\n- `DB_CONSTR` (optional/alternative) - connection-string used by the app - default is `\"dbname='Todos'\"` so this assumes that there is a `Todos` database present on postgres\n\nthere is a way to use this app with just `SQLite` - look for lines like\n\n    import qualified DbPg as Db\n\nin `src/RestApi.hs` and `src/App.hs` and change it to\n\n    import qualified Db\n\nyou will also have to change the line\n\n    dbHandle \u003c- Db.initDb dbCon 4\n\nin `App.hs` into\n\n    dbHandle \u003c- Db.initDb \"./todos.db\"","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarstenkoenig%2Fdockerdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarstenkoenig%2Fdockerdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarstenkoenig%2Fdockerdemo/lists"}