Docker Tutorial - originally posted on Teachingyou.net (my website)
virtualenv venv
source venv/bin/activate
- get_up_and_running_local_development.sh - this script starts a development version of the flask app on your local machine
- start_gunicorn_server.sh - this script is used inside of the docker container to start the flask app in production
- docker_setup.sh - this is used to install docker and docker-compose on you cloud server running a debian buster image
- "virtualenv venv" - this creates the virtual environment
- "pip install flask" - installs flask
- "pip install gunicorn" installs the gunicorn server
- nginx/nginx-live.conf
- add it to the following directory on the nginx container, /etc/nginx/conf.d/sites-available/
- modify the include in /etc/nginx/nginx.conf to look like: include /etc/nginx/conf.d/sites-available/*.conf
- You’ll be notified by email when new members-only posts are published.
- Support me on a monthly basis
- Join my exclusive Discord chat server where you can chat with me personally and ask for help or get help from others on the server.
- Get videos tutorials only available to members
- Discount coupons to my courses