Skip to main content

Deploy and set up Docker Compose based web apps with Ansible

Project description

Docksible

About

This is a tool you can run locally to install a given web app via Docker Compose onto a remote VPS. Though not recommended for serious enterprise grade production environments, it is well suited to quickly spin up an off the cuff demo server, or even a small production server.

Warning

This tool is still under development and not stable yet. Until version 1.0 becomes available, things can and will break between releases.

Features

  • WordPress
  • Redmine (open source issue tracker)
  • SSL
  • Hopefully more soon ;-)

Requirements

  • Local: Unix with Python 3.9 or newer. Tested this on Gentoo and Ubuntu Linux. Might work on macOS, but I don't know. Won't work on Windows, because it uses Ansible under the hood, which AFAIK is not supported for Windows.
  • Remote: VPS running Ubuntu, or maybe other Debian based flavor, reachable via SSH. It should probably work on all Debian distros, but I have only tested on Ubuntu.

Installing

Intall with Pip: python -m pip install docksible

Usage

These examples should be self explanatory:

  • docksible user@example.com wordpress --letsencrypt --email admin@example.com
  • docksible user@example.com redmine --letsencrypt --email admin@example.com

Run the --help flag for all supported options.

Known issues

When setting up a web app on Ubuntu 24.10 and newer, and doing so with the --letsencrypt flag, which is recommended, you must also set the --apparmor-workaround flag.

This because it seems that in Ubuntu 24.10 and newer, there is an issue with AppArmor that prevents Docker containers from being restarted, even when doing so as root, which occurs a few times in the Let's Encrypt role.

Setting the flag --apparmor-workaround will result in the raw command aa-remove-unknown being run on the server everytime before a container gets restarted. This workaround fixes the issue for now, but it is not elegant. Doing this on older versions results in a different error, hence the CLI option.

Altogether, it's tech debt, a temporary workaround, and will be removed soon. Also, the Let's Encrypt handling will be refactored and improved altogether. See these issues for more info:

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

docksible-0.8.2.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docksible-0.8.2-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file docksible-0.8.2.tar.gz.

File metadata

  • Download URL: docksible-0.8.2.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for docksible-0.8.2.tar.gz
Algorithm Hash digest
SHA256 75fdfa946b3c40cfc7550a4e24c99fb7f75b57b425b2a8ca9391630e9629a9e2
MD5 ac1e772860509c7c2b625cb2f1f3e26c
BLAKE2b-256 fa152375108e108aca5e72af70ae316cbc49042ee85bbbac97b944817876979d

See more details on using hashes here.

File details

Details for the file docksible-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: docksible-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for docksible-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3822d2a5351839e1dffe4c33cf2c66622d0604d282189ce9f5ab71472cdd09a
MD5 8c3afcd97326d75fc715f07d409a49c9
BLAKE2b-256 73553b73f58aa121094efafca1e63f4c3f53d10434a9b69d4daee2ea13240c14

See more details on using hashes here.

Supported by

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