Install Docker and [Git](h ttp://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
Clone this repository to your local workspace:
git clone [email protected]:GLiNTECH/docker-atlassian-stash.git
Build Stash Docker image
sudo docker build -t glintech/stash .
Pull Postgres image and run it
sudo docker pull postgres:latest
sudo docker run -d -p=5432:5432 -v /opt/postgres/atlassian:/var/lib/postgresql/d
ata --name postgres postgres:latest
Get Postgres container IP Address
sudo docker inspect postgres | grep -i ipaddress
e.g "IPAddress": "172.17.0.5",
Connect to Postgres console
psql -U postgres -h <x.x.x.x>
Create User and DB
CREATE USER stash WITH PASSWORD 'password';
CREATE DATABASE stashdb WITH OWNER stash ENCODING 'UTF8' LC_COLLATE 'C' LC_CTYPE
'C' TEMPLATE template0;
Run Stash container
sudo docker run -d -v /opt/atlassian/stash/home:/opt/atlassian/stash-home --lin
k postgres:db -p=7990:7990 --name stash glintech/stash
Content type
Image
Digest
sha256:9dd757a01…
Size
480.9 MB
Last updated
almost 11 years ago
docker pull glintech/stash