{"id":13705642,"url":"https://github.com/itielshwartz/sanic-nginx-docker-example","last_synced_at":"2025-07-30T21:32:14.956Z","repository":{"id":94506009,"uuid":"85404237","full_name":"itielshwartz/sanic-nginx-docker-example","owner":"itielshwartz","description":"Sanic + Nginx + Docker basic example","archived":false,"fork":false,"pushed_at":"2017-12-28T13:29:03.000Z","size":3,"stargazers_count":86,"open_issues_count":1,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-13T13:38:37.130Z","etag":null,"topics":["docker","docker-compose","example","nginx","sanic","skeleton"],"latest_commit_sha":null,"homepage":"","language":"Python","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/itielshwartz.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}},"created_at":"2017-03-18T13:44:25.000Z","updated_at":"2024-04-09T12:54:53.000Z","dependencies_parsed_at":"2023-07-28T05:45:19.550Z","dependency_job_id":null,"html_url":"https://github.com/itielshwartz/sanic-nginx-docker-example","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/itielshwartz%2Fsanic-nginx-docker-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itielshwartz%2Fsanic-nginx-docker-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itielshwartz%2Fsanic-nginx-docker-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itielshwartz%2Fsanic-nginx-docker-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itielshwartz","download_url":"https://codeload.github.com/itielshwartz/sanic-nginx-docker-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228189778,"owners_count":17882692,"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","example","nginx","sanic","skeleton"],"created_at":"2024-08-02T22:00:45.418Z","updated_at":"2024-12-04T20:43:12.999Z","avatar_url":"https://github.com/itielshwartz.png","language":"Python","funding_links":[],"categories":["Resources"],"sub_categories":["Examples"],"readme":"# Sanic \u0026 Nginx \u0026 docker-compose example\n# About\nSimple and easy to use skeleton-project using [Sanic] behined [nginx].\n\n\nUsing docker and docker-compose to orchestrate everything.\n\nThe app is based on the (great) blog-post for flask:\nhttps://realpython.com/blog/python/dockerizing-flask-with-compose-and-machine-from-localhost-to-the-cloud/\n\n# How to run?\n  - git clone the project \n  - Start a new docker-machine:\n  `docker-machine create -d virtualbox sanic;`\n  - Attach to the machine:\n    `eval \"$(docker-machine env sanic)\"`\n  - Build the containers (This will take a while for the first time!):\n  `docker-compose build`\n  - Create and start containers:\n    `docker-compose up -d`\n\n## Ok what now?\n  - Use `docker-machine ip sanic` to get the machine IP\n  - Go to `MACHINE-IP/hello-world` or  `MACHINE-IP/static/index.html` and validate everything worked.\n  - That's It!\n  \n## Features:\n  - /static/* files are served using the nginx.\n  - Use the .env file to override or add config values (i override the logo):\n    - Just add SANIC_ prefix before var name.\n\n### Development\n\nWant to contribute? Great!\nFeel free to open PR/Issue :)\n\nLicense\n----\n\nMIT - **Free Software, Hell Yeah!**\n\n[//]: #URLs\n\n   [sanic]: \u003chttps://github.com/channelcat/sanic\u003e\n   [nginx]: \u003chttps://www.nginx.com/resources/wiki/\u003e\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitielshwartz%2Fsanic-nginx-docker-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitielshwartz%2Fsanic-nginx-docker-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitielshwartz%2Fsanic-nginx-docker-example/lists"}