Sign inSign up

ahaasler/stash-postgres

By ahaasler

Updated almost 11 years ago

Image
0

1.1K

ahaasler/stash-postgres repository overview

docker-stash-postgres

A PostgreSQL container ready to be used with docker-stash.

Usage

  1. Create and name the database container:

docker run --name stash-postgres -d ahaasler/stash-postgres ```

  1. Use it in the Stash container:

docker run --name stash --link stash-postgres:stash-postgres -d -p 7990:7990 -p 7999:7999 ahaasler/stash ```

  1. Connect your Stash instance following the Atlassian documentation: Connecting Stash to PostgreSQL.
    • Database Type: PostgreSQL.
    • Hostname: stash-postgres (the name of the link between containers).
    • Port: 5432.
    • Database name: stashdb (or the one specified as STASH_DB_NAME).
    • Database username: stash (or the one specified as STASH_DB_USER).
    • Database password: password (or the one specified as STASH_DB_PASS).

See docker-stash for more information on the stash container.

Parameters

You can use these environment variables to configure your stash postgres instance:

  • STASH_DB_NAME: The name of your PostgreSQL database (default: stashdb).
  • STASH_DB_USER: The user for STASH to connect to the PostgreSQL server (default stash).
  • STASH_DB_PASS: The password that STASH should use to authenticate with the PostgreSQL server (default password).

They should be passed to the docker run command:

docker run --name stash-postgres -d -e STASH_DB_NAME=stashdatabase -e STASH_DB_USER=stashdbuser -e STASH_DB_PASS=p455w0rd ahaasler/stash-postgres

Thanks

License

This image is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Tag summary

Content type

Image

Digest

sha256:d976c2d8c

Size

78.4 MB

Last updated

almost 11 years ago

docker pull ahaasler/stash-postgres