GithubHelp home page GithubHelp logo

fastapi-docker-template's Introduction

Fastapi-docker-template

執行步驟

去申請免費網域

freenom 申請一個免費的網域做練習

其中traefik.mb0520-demo.dl 就是我的子網域

建立.env 給docker-compose使用

vim .env

# 舉例來說
DOMAIN=mb0520-demo.ml
[email protected]
TRAEFIK_USER=admin
TRAEFIK_PASSWORD_HASH=$2y$10$zi5n43jq9S63gBqSJwHTH.nCai2vB0SW/ABPGg2jSGmJBVRo0A.ni # admin


# 如果你要新增一筆賬號密碼 可以這樣設定
echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g
# user:$$apr1$$nRnH1WwB$$UKQfB0zrDIKhocuSxc/tE.

建立憑證資訊

touch acme.json
chmod 600 acme.json

還未完成的事情

  • docker-compose.local.yml (for local traefik)

fastapi-docker-template's People

Contributors

s724959099 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.