A PostgreSQL container ready to be used with docker-stash.
-
Create and name the database container:
docker run --name stash-postgres -d ahaasler/stash-postgres ```
-
Use it in the Stash container:
docker run --name stash --link stash-postgres:stash-postgres -d -p 7990:7990 -p 7999:7999 ahaasler/stash ```
- 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.
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
- 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.
This image is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.