{"id":26307650,"url":"https://github.com/johnfmorton/example-static-docker-website-for-traefik","last_synced_at":"2026-05-07T13:05:27.062Z","repository":{"id":185379410,"uuid":"668422869","full_name":"johnfmorton/example-static-docker-website-for-traefik","owner":"johnfmorton","description":"A static website server from a Docker container and routed with Traefik.","archived":false,"fork":false,"pushed_at":"2025-01-10T18:59:57.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T04:29:16.347Z","etag":null,"topics":["docker","docker-compose","nginx","traefik"],"latest_commit_sha":null,"homepage":"https://hello-world.morton.dev/","language":"HTML","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/johnfmorton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-19T19:14:18.000Z","updated_at":"2025-01-10T19:00:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"7046f631-9a28-416f-82e7-b136ef09db40","html_url":"https://github.com/johnfmorton/example-static-docker-website-for-traefik","commit_stats":null,"previous_names":["johnfmorton/example-static-docker-website-for-traefik"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfmorton%2Fexample-static-docker-website-for-traefik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfmorton%2Fexample-static-docker-website-for-traefik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfmorton%2Fexample-static-docker-website-for-traefik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfmorton%2Fexample-static-docker-website-for-traefik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnfmorton","download_url":"https://codeload.github.com/johnfmorton/example-static-docker-website-for-traefik/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713369,"owners_count":20335567,"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","nginx","traefik"],"created_at":"2025-03-15T10:15:35.491Z","updated_at":"2025-10-07T06:52:06.818Z","avatar_url":"https://github.com/johnfmorton.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample static website for Traefik\n\nThis repo contains a docker-compose.yml that creates a static website and a Traefik reverse proxy. It was created to test the Traefik reverse proxy with a static website when using Laravel Forge, but it should work for any server that has Docker installed where you are testing Traefik.\n\nIt was created to be used as a sample web site for the following repo: https://github.com/johnfmorton/traefik-for-laravel-forge\n\n## The accompanying blog post\n\nFor a complete write-up on using this repo, read [*Analytics a different way. Plausible Analytics on Laravel Forge with Traefik and Docker.*](https://supergeekery.com/blog/plausible-analytics-on-laravel-forge-with-traefik-and-docker)\n\n## Usage\n\nThe repo assumes you have Docker installed and running.\n\nAs shown in the reference repo above, it also assumes you have a Traefik container running. The Traefik container should be running on the same network as the containers created by this repo. The Traefik container uses a network called `proxy` by default. If you are using a different network, you will need to update the `docker-compose.yml` file in this repo to use the correct network.\n\nTo start the containers, run the following command:\n\n```\ndocker-compose -p basic-web-site -f docker-compose.yml up -d --remove-orphans\n```\n\n## DNS and the environment file\n\nUsing the [`example.env`](/example.env) file as a reference, create a `.env` file in the same directory as the `docker-compose.yml` file. The `.env` file should contain the following variables:\n\n```\nSITE_URL=example.com\n```\n\nYou will also need to configure your DNS host to point the domain name to the IP address of the server where the containers are running.\n\n## About the directories\n\nThe `web` directory contains the static website files.\n\nThe `web` directory is mounted as a volume in the `nginx` container. The `nginx` container is configured to serve the files in the `web` directory. The `index.html` file should display a simple \"Hello World\" message.\n\n## License\n\nThe source code for the site is licensed under the MIT license, which you can find in\nthe MIT-LICENSE.txt file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnfmorton%2Fexample-static-docker-website-for-traefik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnfmorton%2Fexample-static-docker-website-for-traefik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnfmorton%2Fexample-static-docker-website-for-traefik/lists"}