diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..291afc7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,26 @@ +kind: pipeline +type: ssh +name: default + +clone: + disable: true + +server: + host: + from_secret: host + user: + from_secret: user + password: + from_secret: password + +steps: + - name: release + commands: + - cd /mnt/md0/experimental/jira + - git pull + +trigger: + branch: + - master + event: + - push diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a3170a5 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +MAKEFLAGS += --silent + +.PHONY: * + +restart: + docker-compose -f docker-compose.yml down + docker-compose -f docker-compose.yml up -d + +.DEFAULT_GOAL := restart diff --git a/README.md b/README.md index 5a970cd..8a0d6df 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ -# jira-software +### jira +[![Build Status](https://drone.fedy95.com/api/badges/experimental/jira/status.svg)](https://drone.fedy95.com/experimental/jira) +### services +- [netbox](https://hub.docker.com/r/atlassian/jira-software) +- [postgres](https://hub.docker.com/_/postgres) diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bd13873 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,39 @@ +version: "3" + +volumes: + jira_instance: + external: false + +services: + jira_instance: + image: atlassian/jira-software:8.12.2 + container_name: jira_instance + hostname: jira_instance + + depends_on: + - jira_db + volumes: + - jira_instance:/var/atlassian/jira + ports: + - '3010:8080' + env_file: env/jira_instance.env + + logging: + driver: json-file + options: + max-size: "10m" + max-file: "5" + jira_db: + image: postgres:9.5-alpine + container_name: jira_db + hostname: jira_db + + volumes: + - ./etc/jira_db/var/lib/postgresql/data:/var/lib/postgresql/data + env_file: env/jira_db.env + + logging: + driver: json-file + options: + max-size: "10m" + max-file: "5" diff --git a/env/.gitignore b/env/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/env/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/etc/jira_db/.gitignore b/etc/jira_db/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/etc/jira_db/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore