Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

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
    
  2. Use it in the Stash container:

    docker run --name stash --link stash-postgres:stash-postgres -d -p 7990:7990 -p 7999:7999 ahaasler/stash
    
  3. 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

  • Docker for this amazing container engine.
  • PostgreSQL for this advanced database.
  • Atlassian for making great products. Also for their work on atlassian-docker which inspired this.
  • Azul Systems for their OpenJDK docker base image.
  • And specially to you and the entire community.

License

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

Docker Pull Command
Owner
ahaasler
Source Repository

Comments (0)