Skip to main content

Simplify work with postgres inside docker-compose service

Project description

usage: docker-compose-postgres [-h] [-c COMMAND] [-T] [--docker-compose-command DOCKER_COMPOSE_COMMAND] [-p] [-f FILE] [--env-user ENV_USER] [--env-db ENV_DB] [--service SERVICE] [-U USERNAME] [-d DBNAME]

optional arguments:
  -h, --help            show this help message and exit
  -c COMMAND, --command COMMAND
                        run only single command (SQL or internal) and exit
  -T                    disable pseudo-tty allocation. By default `docker-compose exec allocates a TTY.
  --docker-compose-command DOCKER_COMPOSE_COMMAND
                        path to docker-compose executable. Default `docker-compose`
  -p, --print           do not call subprocess. Print command only.
  -f FILE, --file FILE  specify an alternate compose file (default: docker-compose.yml)
  --env-user ENV_USER   environment variable which defines username. Default `POSTGRES_USER`
  --env-db ENV_DB       environment variable which defines dbname. Default `POSTGRES_DB`
  --service SERVICE     specify name of service. Default behaviour is to find service with image name starts with `postgres:`
  -U USERNAME, --username USERNAME
                        database user name
  -d DBNAME, --dbname DBNAME
                        database name

Project details


Download files

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

Files for docker-compose-postgres, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size docker_compose_postgres-0.0.2-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size docker-compose-postgres-0.0.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page