Create DockerCompose for Jira #1 - Removed Jira

This commit is contained in:
Luke Else 2022-11-16 14:28:03 +00:00
parent fcef091eae
commit 5bfb645b73

View File

@ -1,63 +0,0 @@
version: '3.8'
services:
#Jira
Jira:
image: atlassian/jira-software:latest
container_name: Jira
volumes:
- ./jira:/var/atlassian/jira
networks:
- jira
- development
ports:
- '8080:8080'
depends_on:
- postgresql
- traefik
environment:
VIRTUAL_HOST: localhost
CATALINA_OPTS: '-Xms1024m -Xmx2048m -XX:+UseG1GC -Datlassian.plugins.enable.wait=300'
X_PROXY_NAME: jira.luke-else.co.uk
X_PROXY_PORT: 443
X_PROXY_SCHEME: https
labels:
## Expose Jira Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.routers.jira.rule=Host(`jira.luke-else.co.uk`) || Host(`www.jira.luke-else.co.uk`)"
- "traefik.http.routers.jira.entrypoints=http"
- "traefik.http.routers.jira.middlewares=redirect@file"
- "traefik.http.routers.jira-secured.rule=Host(`jira.luke-else.co.uk`) || Host(`www.jira.luke-else.co.uk`)"
- "traefik.http.routers.jira-secured.entrypoints=https"
- "traefik.http.routers.jira-secured.tls.certresolver=mytlschallenge"
restart: unless-stopped
#Postgres database
postgresql:
image: sameersbn/postgresql:latest
container_name: postgresql
volumes:
- ./postgresql:/var/lib/postgresql
networks:
- jira
environment:
- DEBUG=false
- DB_USER=jira
- DB_PASS=password
- DB_NAME=jiradb
- DB_EXTENSION=pg_trgm
restart: unless-stopped
volumes:
jiradata:
external: false
postgresqldata_jira:
external: false
networks:
jira:
name: jira
development:
external: true