Skip to main content

Publish multiple docker containers using nginx

Project description

Dockup is a command line interface tool which allows to easily publish applications at a given path through docker containers and nginx.

A Dockup package is a compressed file containing:

  • the content you want to publish: python script, HTML file, ...

  • the dockup.yml configuration file which contains the following info

    • name of the package, must be the same name as the archive containing it

    • path at which the package will be accessible. For example /app1 for website.com/app1

    • type of the package. For example, website, flet application

  • optional: Dockerfile and nginx.conf in case customization is needed

When you publish a Dockup package, the tool will do the following things automatically for you:

  • Docker compose stop
  • Extract the package archive in the Dockup app folder
  • If necessary, build the nginx configuration
  • If necessary, build the docker file
  • Rebuild the docker compose file
  • Dockup compose build and up

The nginx reverse proxy used by Dockup is also installed as Dockup package. This makes it convenient to configure and update the reverse proxy, for example to configure HTTPS on your server.

Installation

First of all install the docker engine: https://docs.docker.com/engine/install/

Then install Dockup as a pip package

pip3 install dockup

Usage

As a command line tool

Install the proxy Package

  • given that your reverse proxy package is located in your current working directory
  • you can prepare the reverse proxy package according to you needs:
  • you can also specify the package as an archive if it is present in your working directory.
python3 -m dockup installproxy reverse_proxy_http

Publish a package

  • you can also specify the package as an archive if it is present in your working directory.
pyhton3 -m dockup install flet_app1

To remove a package

python3 -m dockup uninstall flet_app1

As a python package

import dockup

dockup.down()
dockup.reset()
dockup.set_proxy('./reverse_proxy_http.tar.gz')
dockup.add('flet_app1.tar.gz')
build_nodes()
dockup.up()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dockup-0.0.13.tar.gz (16.2 kB view hashes)

Uploaded Source

Built Distribution

dockup-0.0.13-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page