https://github.com/ferhatozcelik/flask-nginx-docker
This Docker image allows you to create Flask web applications in Python that run with uWSGI and Nginx in a single container.
https://github.com/ferhatozcelik/flask-nginx-docker
docker flask nginx
Last synced: 2 months ago
JSON representation
This Docker image allows you to create Flask web applications in Python that run with uWSGI and Nginx in a single container.
- Host: GitHub
- URL: https://github.com/ferhatozcelik/flask-nginx-docker
- Owner: ferhatozcelik
- Created: 2023-02-03T19:43:07.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T19:47:15.000Z (over 3 years ago)
- Last Synced: 2025-01-23T02:11:25.596Z (over 1 year ago)
- Topics: docker, flask, nginx
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask - Nginx - Docker
Flask - Nginx - Docker
# Docker Install
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
https://www.hostinger.web.tr/rehberler/ubuntu-docker-kurulumu
sudo apt-get update
sudo apt-get install docker-ce
sudo systemctl status docker
# Docker Command
### Build
docker-compose build
### Up
docker-compose up -d
### Image Prune
docker image prune -a -f
### Log
dockor-compose logs
### Image Delete
docker rmi con_id
### Image Conteiner Delete
docker rm con_id
# Project Build
git clone git_repo_url
cd project_name
docker-compose build
docker-compose up -d
# Github Setup
Go to Settings -> Secrets -> Actions and add a new repository secret.
Add the following secrets one by one:
VPS_SSH_HOST — this the host IP address of your server.
VPS_SSH_USERNAME — this is the username from your user@ipaddress login.
VPS_SSH_SECRET — this is the private SSH key that you set up for GitHub access on your server.
VPS_SSH_PORT — this is the port number for SSH access. Typically, it’s port 22.
SSH_PASSPHRASE — this is the passphrase if you supplied any during creation of your SSH key.
PROJECT_PATH — This is the entire project path of your project’s root directory. For example, /home/username/path/to/your/projectrootdirectory