2022-10-28 16:57:28 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
#Jira
|
|
|
|
Jira:
|
|
|
|
image: atlassian/jira-software:latest
|
|
|
|
container_name: Jira
|
2022-10-31 21:39:29 +00:00
|
|
|
volumes:
|
|
|
|
- ./jira:/var/atlassian/jira
|
|
|
|
networks:
|
|
|
|
- jira
|
|
|
|
- development
|
|
|
|
ports:
|
|
|
|
- '8080:8080'
|
|
|
|
depends_on:
|
|
|
|
- postgresql
|
|
|
|
- traefik
|
2022-10-28 16:57:28 +00:00
|
|
|
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
|
2022-11-03 16:23:23 +00:00
|
|
|
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"
|
2022-10-28 16:57:28 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
#Postgres database
|
|
|
|
postgresql:
|
|
|
|
image: sameersbn/postgresql:latest
|
|
|
|
container_name: postgresql
|
2022-10-31 21:39:29 +00:00
|
|
|
volumes:
|
|
|
|
- ./postgresql:/var/lib/postgresql
|
|
|
|
networks:
|
|
|
|
- jira
|
2022-10-28 16:57:28 +00:00
|
|
|
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:
|
2022-10-31 21:39:29 +00:00
|
|
|
name: jira
|
|
|
|
development:
|
|
|
|
external: true
|