All Projects → itielshwartz → Sanic Nginx Docker Example

itielshwartz / Sanic Nginx Docker Example

Sanic + Nginx + Docker basic example

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Sanic Nginx Docker Example

Filterlists
🛡 The independent, comprehensive directory of filter and host lists for advertisements, trackers, malware, and annoyances.
Stars: ✭ 653 (+748.05%)
Mutual labels:  docker-compose, nginx
Magento2 Varnish Redis Ssl Docker Compose
Deploy Magento2 with Varnish Cache and Redis with SSL termination using Docker-compose tool
Stars: ✭ 37 (-51.95%)
Mutual labels:  docker-compose, nginx
Ansible Skeleton
The skeleton to create new ansible roles.
Stars: ✭ 5 (-93.51%)
Mutual labels:  example, skeleton
Wordpress Nginx Docker Compose
Run WordPress with nginx using Docker Compose.
Stars: ✭ 460 (+497.4%)
Mutual labels:  docker-compose, nginx
Docker Nginx Letsencrypt Upstream
infrastructure: docker-compose config for node and redis behind upstream nginx ( SSL/HTTPS ) on debian jessie
Stars: ✭ 47 (-38.96%)
Mutual labels:  docker-compose, nginx
Micro Auth
A microservice that makes adding authentication with Google and Github to your application easy.
Stars: ✭ 466 (+505.19%)
Mutual labels:  docker-compose, nginx
Antvueblogfront
🔥使用Vue全家桶 + Egg + Mongodb 写的个人网站博客。使用docker compose 一键部署。(最近比较忙,部署还有点问题,后期补上)
Stars: ✭ 36 (-53.25%)
Mutual labels:  docker-compose, nginx
Stacker
Stacker - The environment for local web development, ready for use.
Stars: ✭ 356 (+362.34%)
Mutual labels:  docker-compose, nginx
Docker For Local Development
This project provides a basic Docker setup, for building a local development environment for Zend Expressive, and other PHP application development.
Stars: ✭ 74 (-3.9%)
Mutual labels:  docker-compose, nginx
Docker Flarum
Flarum Docker image based on Alpine Linux
Stars: ✭ 43 (-44.16%)
Mutual labels:  docker-compose, nginx
Docker Laravel
🐳 Build a simple laravel development environment with docker-compose.
Stars: ✭ 415 (+438.96%)
Mutual labels:  docker-compose, nginx
Docker Magento Mutagen
Mage2click Docker-based development environment for Magento with mutagen.io sync for files on macOS
Stars: ✭ 64 (-16.88%)
Mutual labels:  docker-compose, nginx
Django React Boilerplate
DIY Django + React Boilerplate for starting your SaaS
Stars: ✭ 385 (+400%)
Mutual labels:  docker-compose, nginx
Wordpress Nginx Docker
Wordpress (php7.3-fpm) using Nginx and MariaDB - deployed with docker-compose - Let's Encrypt enabled
Stars: ✭ 498 (+546.75%)
Mutual labels:  docker-compose, nginx
Nginx Ui
Nginx UI allows you to access and modify the nginx configurations files without cli.
Stars: ✭ 4,067 (+5181.82%)
Mutual labels:  docker-compose, nginx
Ngx mruby Package Builder
Package Builder of ngx_mruby with Docker
Stars: ✭ 25 (-67.53%)
Mutual labels:  docker-compose, nginx
scala-basic-skeleton
Starting point if you want to bootstrap a project in Scala
Stars: ✭ 16 (-79.22%)
Mutual labels:  skeleton, example
Devilbox
A modern Docker LAMP stack and MEAN stack for local development
Stars: ✭ 3,598 (+4572.73%)
Mutual labels:  docker-compose, nginx
Docker Skeleton Php
A simple Docker PHP development environment
Stars: ✭ 40 (-48.05%)
Mutual labels:  skeleton, nginx
Docker Php7
Compose Docker with PHP7,FPM,MariaDB and Nginx
Stars: ✭ 49 (-36.36%)
Mutual labels:  docker-compose, nginx

Sanic & Nginx & docker-compose example

About

Simple and easy to use skeleton-project using Sanic behined nginx.

Using docker and docker-compose to orchestrate everything.

The app is based on the (great) blog-post for flask: https://realpython.com/blog/python/dockerizing-flask-with-compose-and-machine-from-localhost-to-the-cloud/

How to run?

  • git clone the project
  • Start a new docker-machine: docker-machine create -d virtualbox sanic;
  • Attach to the machine: eval "$(docker-machine env sanic)"
  • Build the containers (This will take a while for the first time!): docker-compose build
  • Create and start containers: docker-compose up -d

Ok what now?

  • Use docker-machine ip sanic to get the machine IP
  • Go to MACHINE-IP/hello-world or MACHINE-IP/static/index.html and validate everything worked.
  • That's It!

Features:

  • /static/* files are served using the nginx.
  • Use the .env file to override or add config values (i override the logo):
    • Just add SANIC_ prefix before var name.

Development

Want to contribute? Great! Feel free to open PR/Issue :)

License

MIT - Free Software, Hell Yeah!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].