diff --git a/README.md b/README.md index bc185aa..11fd41c 100644 --- a/README.md +++ b/README.md @@ -285,6 +285,7 @@ A collection of delicious docker recipes. - [ ] python - [x] gogs/gogs :cn: - [x] haproxy +- [x] teamatldocker/jira - [x] jmxtrans/jmxtrans - [x] wurstmeister/kafka - [x] netdata/netdata diff --git a/jira/README.md b/jira/README.md new file mode 100644 index 0000000..63201a3 --- /dev/null +++ b/jira/README.md @@ -0,0 +1,22 @@ +jira +==== + +[Jira][1] Software is a powerful platform that combines issue collection and agile +project management capabilities into a single application. Using Jira Software +helps you plan and organize tasks, workflows, and reports for your agile team +more efficiently. + +```bash +$ mkdir -p data/jira +$ chown 1000:1000 data/jira +$ docker-compose up -d +$ docker-compose exec postgres psql -U jira +>>> select * from propertystring where id in (select id from propertyentry where PROPERTY_KEY='jira.sid.key'); + id | propertyvalue +-------+--------------------- + 10101 | BP8Q-WXN6-SKX3-NB5M +>>> \q +$ curl http://localhost:8080/ +``` + +[1]: https://support.atlassian.com/jirasoftware/ diff --git a/jira/docker-compose.yml b/jira/docker-compose.yml new file mode 100644 index 0000000..148cffe --- /dev/null +++ b/jira/docker-compose.yml @@ -0,0 +1,31 @@ +version: "3.7" + +services: + + jira: + image: teamatldocker/jira:8.5.0 + ports: + - "8080:8080" + volumes: + - ./data/jira:/var/atlassian/jira + environment: + - DOCKER_WAIT_HOST=postgres + - DOCKER_WAIT_PORT=5432 + - JIRA_DATABASE_URL=postgresql://jira@postgres/jira + - JIRA_DB_PASSWORD=jira + - JIRA_PROXY_NAME=jira.example.com + - JIRA_PROXY_PORT=443 + - JIRA_PROXY_SCHEME=https + - SETENV_JVM_MINIMUM_MEMORY=4g + - SETENV_JVM_MAXIMUM_MEMORY=8g + restart: unless-stopped + + postgres: + image: postgres:12-alpine + volumes: + - ./data/postgres:/var/lib/postgresql/data:Z + environment: + - POSTGRES_DB=jira + - POSTGRES_USER=jira + - POSTGRES_PASSWORD=jira + restart: unless-stopped