Package: docky
docky is a dev tool to set up and run multiple odoo projects.History & motivationThis project was initially created for building Odoo environments without effort based on docker-compose and docker.Main featuresSimplify docker-compose CLI with few short cuts.Requirementsdocker-ce :https://docs.docker.com/install/(or podman)InstallationDocky is available from pypipipinstalldocky# or with pipx : pipx install docky --include-depsUpdate Dockypipinstalldocky--upgrade# or with pipx : pipx upgrade docky --include-depsUsage: labelsThe label docky.main.service and docky.userdocky.main.service:odoodocky.user:odooAllows you to define the main service of your docker-compose.yml file, and to specify the command line user for the container when you run for example ‘docky run’.Usage: recommendationsUseakto build your project.When developing, if you are on several projects at once, it quickly becomes a mess to manage different ports of your containers. We recommend usage of Traefik. Here is an example docker-compose.yml file for local development purposes:version:"3.7"services:traefik:image:"traefik:v2.1"restart:alwayscontainer_name:"traefik"command:-"--api.insecure=true"-"--providers.docker=true"-"--providers.docker.exposedbydefault=false"-"--entrypoints.web.address=:80"ports:-"127.0.0.1:80:80"-"127.0.0.1:8080:8080"volumes:-"/var/run/docker.sock:/var/run/docker.sock:ro"networks:-traefiknetworks:traefik:name:traefikMore info about Traefik config on this repo:https://github.com/akretion/traefik-templateTroubleshootingTo avoid issues with line wrapping with “docky open” please use a version of docker > to  18.06.0-ce
see :https://github.com/docker/compose/issues/6151Changelogversion 8.0.0
- remove docky initversion 7.0.7
- update copier depency
- adapt readmeversion 7.0.6
- update copier dep to 6.0.0a9
- remove dead code (old template)version 7.0.5
- fix requirements.txtversion 7.0.4
- usecopierfor managing the template
- drop python 3.5 supportversion 7.0.0remove the need of docky config file in $HOMEuse .env to be more compatible with docker-composeimprove templatescreate init commandheavy refactoringversion 6.0.0refactor remove proxy code and use traefikremove docky.yml now you must use labels on services (see doc)add option “–service=myservice” on docky run and docky openversion 5.0.0:Resolve mac compatibility by remove proxy code that use a mounted version of etc/hosts
now you need to install dnsmasq.
This should also solve windows compatibilty by using the local dnshttps://stackoverflow.com/questions/138162/wildcards-in-a-windows-hosts-file?answertab=votes#tab-topSolve issue with project name in multi user env (the name is based on user + directory name)Add possibility to specify the service for run, open, logs, kill, down, restart, start cmd
for example now you can do “docky open db” to open a terminal on the db server
or you can restart a service like “docky restart varnish”Solve issue with missing aliases nameSolve issue with missing environment variable with docky open (now we use a monkey-pacthed version of docker-compose exec)Fix documentation buildImprove docky none specific cmd to a project to be run without project.
For example, you can use docky help, docky proxy outside of a directory project