- Requierments - root/sudo privilege
- Docker installed
- Optional - docker-compose
- Getting the source files
bash git clone [email protected]:nitzanel/gittabags-registration - With Docker
- Building the Docker container
cd gittabags-registration sudo docker build -t gittabags_flask ./ - Running the Docker container
sudo docker run -p 3000:4000 -t gittabags_flask
- Building the Docker container
- With Docker-Compose:
cd gittabags-registration docker-compose up -d - Stopping the app:
- Docker:
docker stop $(docker ps -aq)- Docker-Compose:
docker-compose down
Setting Apache reverse proxy on /registration
If using http use port 80
if using https use port 443
If no <VirtualHost *80> exist:
<VirtualHost *:80>
ProxyRequests On
ProxyPass /registration/ http://localhost:3000/
ProxyPassReverse /registration/ http://localhost:3000/
ProxyPass /static/ http://localhost:3000/static/
ProxyPassReverse /static/ http://localhost:3000/static/
</VirtualHost>Otherwise - put it in an existing one.
<VirtualHost *:80>
...
ProxyRequests On
ProxyPass /registration/ http://localhost:3000/
ProxyPassReverse /registration/ http://localhost:3000/
ProxyPass /static/ http://localhost:3000/static/
ProxyPassReverse /static/ http://localhost:3000/static/
...
</VirtualHost>Then reload apache:
service apache2 reloadSetting Nginx reverse proxy on /registration Add the following location to the nginx conf file:
location /registration/ {
proxy_pass http://localhost:3000/
}location /static/ {
proxy_pass http://localhost:3000/static/
}Then reload nginx:
service nginx reload