{"id":19958307,"url":"https://github.com/lukewatts/postleaf-docker","last_synced_at":"2026-06-07T02:32:02.751Z","repository":{"id":73046179,"uuid":"89508959","full_name":"lukewatts/postleaf-docker","owner":"lukewatts","description":"Docker container for Postleaf. Currently just for trying out Postleaf","archived":false,"fork":false,"pushed_at":"2017-05-05T20:11:58.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T23:13:05.429Z","etag":null,"topics":["docker","docker-container","postleaf"],"latest_commit_sha":null,"homepage":null,"language":null,"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/lukewatts.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":"2017-04-26T17:31:13.000Z","updated_at":"2022-02-06T15:40:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"c22e6b8f-d3e4-49d7-b13b-e9994f83fe97","html_url":"https://github.com/lukewatts/postleaf-docker","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukewatts%2Fpostleaf-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukewatts%2Fpostleaf-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukewatts%2Fpostleaf-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukewatts%2Fpostleaf-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukewatts","download_url":"https://codeload.github.com/lukewatts/postleaf-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241389166,"owners_count":19955107,"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-container","postleaf"],"created_at":"2024-11-13T01:41:59.949Z","updated_at":"2026-06-07T02:32:02.713Z","avatar_url":"https://github.com/lukewatts.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postleaf Docker Container\nDocker container for Postleaf. Currently just for trying out Postleaf.\n\n__IMPORTANT:__ Not recommended for production usage. Postleaf is currently in Alpha testing phase and this Dockerfile is currently not for production. \n\n## Features\nThis container has the following services/software build in:\n\n- Nginx 1.13.0\n- Node 7.x\n- Postleaf 1.0.0-alpha.3\n\n## Usage (with volumes)\n1. Once Docker is installed clone this repo: `git clone https://github.com/lukewatts/postleaf-docker.git`\n2. Change into `postleaf-docker` directory: `cd postleaf-docker`\n3. Ensure docker command has sudo rights: `sudo usermod -aG docker sudo`\n4. Build container: `docker build -t postleaf:1.0.0-alpha.3 .`\n5. Create necessary volume directories: `mkdir html/data html/cache/ html/uploads`\n6. Make sure volumes has correct owner: `sudo chown -R root:root $(pwd)/html`\n5. Run the container: `docker run -tid -v $(pwd)/html/data:/usr/share/nginx/html/data -v $(pwd)/html/cache:/usr/share/nginx/html/cache -v $(pwd)/html/uploads:/usr/share/nginx/html/uploads -p 80:80 --name postleaf postleaf:1.0.0-alpha.3`\n6. Visit the url (http://127.0.0.1 or http://localhost)\n\n## Usage (for quick testing)\n1. Follow steps 1 - 4 above.\n2. Run the container so it removes the container when stopped: `docker run -ti --rm -p 80:80 --name postleaf_test postleaf:1.0.0-alpha.3`\n3. Visit the url\n\n## Access container while it is running\nIf you want to look at the code of Postleaf or debug issues etc you will need to use `exec` to access the container while it's running.\n\n`docker exec -it postleaf bash`\n\n__NOTE:__ To make edits you will need to install Vim or Nano yourself.\n\n`apt-get install vim nano`\n\n## If you are not running on localhost\nIf you are testing Postleaf on a domain, vhost or on a server with a public IP you will notice the styles are not correctly loaded on the login screen. \n\nTo fix this you will need to add the `--env` flag to set the `APP_URL` variable.\n\nAssuming you're domain is `http://postleaf.dev/` you will need to use the following command when running the container:\n\n`docker run -tid -v $(pwd)/html/data:/usr/share/nginx/html/data -v $(pwd)/html/cache:/usr/share/nginx/html/cache -v $(pwd)/html/uploads:/usr/share/nginx/html/uploads -p 80:80 --env APP_URL=http://postleaf.dev/ --name postleaf postleaf:1.0.0-alpha.3`\n\n## Future features\n- Allow overriding all ENV variables in .env file. Not just APP_URL\n- Add to Docker Hub\n\n## Issues\nFor issues with this Docker file, such as build or runtime issues create a new issues here: [Postleaf Docker Issues](https://github.com/lukewatts/postleaf-docker/issues) \n\nFor help with Postleaf go here: [Posteaf Support Forum](https://community.postleaf.org/)\n\nFor bugs with Postleaf itself submit issues here: [Postleaf Issues](https://github.com/Postleaf/postleaf/issues)\n\n## Reasources\n - [Postleaf Website](https://postleaf.org/)\n - [Docker Documentation](https://docs.docker.com/)\n\n## Licence\nMIT\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukewatts%2Fpostleaf-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukewatts%2Fpostleaf-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukewatts%2Fpostleaf-docker/lists"}