{"id":17384363,"url":"https://github.com/tsertkov/docker-static-site-vars","last_synced_at":"2026-02-17T20:32:06.043Z","repository":{"id":65996610,"uuid":"102947125","full_name":"tsertkov/docker-static-site-vars","owner":"tsertkov","description":"Solution for accepting dynamic variables in statically compiled site","archived":false,"fork":false,"pushed_at":"2017-09-09T10:41:25.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-24T05:16:20.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/tsertkov.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-09-09T10:26:45.000Z","updated_at":"2017-09-09T12:53:54.000Z","dependencies_parsed_at":"2023-05-21T20:15:16.094Z","dependency_job_id":null,"html_url":"https://github.com/tsertkov/docker-static-site-vars","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsertkov/docker-static-site-vars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fdocker-static-site-vars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fdocker-static-site-vars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fdocker-static-site-vars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fdocker-static-site-vars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsertkov","download_url":"https://codeload.github.com/tsertkov/docker-static-site-vars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fdocker-static-site-vars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29557246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T20:14:27.083Z","status":"ssl_error","status_checked_at":"2026-02-17T20:14:26.018Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-10-16T07:45:17.909Z","updated_at":"2026-02-17T20:32:01.026Z","avatar_url":"https://github.com/tsertkov.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-static-site-vars\n\n\u003e Solution for accepting dynamic variables in a statically compiled site.\n\n## Overview\n\nUsing `envsubst` to replace template variables in static files with corresponding environment variable values.\n\nConfiguration values are specified in `dot-env` file and passed to container by environment variables mapping in `docker-compose.yml`.\n\n## Usage\n\n```sh\n$ docker-compose up -d\n$ open http://localhost\n$ docker-compose down\n```\n\n## Example setup\n\n```sh\n# dot-env\nVAR_1=val-1\nVAR_2=val-2\n```\n\n```yaml\n# docker-compose.yml\nversion: \"2\"\nservices:\n  nginx:\n    build: .\n    ports:\n      - \"80:80\"\n    environment:\n      VAR_1: \"${VAR_1}\"\n      VAR_2: \"${VAR_2}\"\n\n```\n\n```html\n# index.html\n\u003cpre\u003e\n  $VAR_1=${VAR_1}\n  $VAR_2=${VAR_2}\n\u003c/pre\u003e\n```\n\n## Result (screenshot)\n\n![image](https://user-images.githubusercontent.com/5339042/30239334-ac178006-955a-11e7-9f40-2b4784d22b87.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsertkov%2Fdocker-static-site-vars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsertkov%2Fdocker-static-site-vars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsertkov%2Fdocker-static-site-vars/lists"}