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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for docker-compose-postgres-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef06aa906f941831252d1680bed59c965e86a2ece1ee45c3e7e99803b483ba7c |
|
MD5 | 29ec88fad2246d9cb3161ace30629496 |
|
BLAKE2b-256 | 8f33c1a9a82747eedc00d19f1155246d580bfd911065b48652d331850f51d75d |
Close
Hashes for docker_compose_postgres-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9b2652b0687fc12d3cfae4a1747c7a303ad436e5f5c26b8ef5ecbfa3a7e3f0 |
|
MD5 | 4649c422f3f1ed29190480922326c09e |
|
BLAKE2b-256 | 70ebbf9f94b7e490f6a4cd6d2b90d1576a3970dc5ad6d2c5f28a2510217e2fb1 |