|
| 1 | +services: |
| 2 | + |
| 3 | + confluence: |
| 4 | + image: atlassian/confluence:latest |
| 5 | + container_name: confluence |
| 6 | + hostname: confluence |
| 7 | + restart: unless-stopped |
| 8 | + environment: |
| 9 | + # detailed debug messages during the container initialization |
| 10 | + - VERBOSE_LOGS=false |
| 11 | + # maximum number of days for access logs to be retained before being deleted |
| 12 | + - ATL_TOMCAT_ACCESS_LOGS_MAXDAYS=360 |
| 13 | + # The maximum time a user can remain logged-in with remember me feature. |
| 14 | + - ATL_AUTOLOGIN_COOKIE_AGE |
| 15 | + # The minimum heap size of the JVM |
| 16 | + - JVM_MINIMUM_MEMORY=1024m |
| 17 | + # maximum heap size of the JVM |
| 18 | + - JVM_MAXIMUM_MEMORY=1024m |
| 19 | + # reserved code cache size of the JVM |
| 20 | + - JVM_RESERVED_CODE_CACHE_SIZE=256m |
| 21 | + # reverse proxy setup |
| 22 | + - ATL_PROXY_NAME=confluence.example.com |
| 23 | + - ATL_PROXY_PORT=443 |
| 24 | + - ATL_TOMCAT_PORT=8090 |
| 25 | + - ATL_TOMCAT_SCHEME=https |
| 26 | + - ATL_TOMCAT_SECURE=false |
| 27 | + # list of trusted reverse proxy ips separated by a pipe character |
| 28 | + - ATL_TOMCAT_TRUSTEDPROXIES=192.168.0.0/24|10.0.0.0/8|172.16.0.0/16 |
| 29 | + ports: |
| 30 | + - 8090:8090/tcp |
| 31 | + expose: |
| 32 | + - 8090 # http web |
| 33 | + - 8091 # api port for jira communication |
| 34 | + volumes: |
| 35 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/confluence/data:/var/atlassian/application-data/confluence |
| 36 | + networks: |
| 37 | + - atlassian-network |
| 38 | + #labels: |
| 39 | + # - traefik.enable=true |
| 40 | + # - traefik.docker.network=atlassian-network |
| 41 | + # - traefik.http.routers.confluence.rule=Host(`confluence.example.com`) |
| 42 | + # - traefik.http.services.confluence.loadbalancer.server.port=8080 |
| 43 | + # # Optional part for file upload max sizes |
| 44 | + # - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000 |
| 45 | + # - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000 |
| 46 | + # - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000 |
| 47 | + # - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000 |
| 48 | + # # Optional part for traefik middlewares |
| 49 | + # - traefik.http.routers.confluence.middlewares=local-ipwhitelist@file |
| 50 | + |
| 51 | + jira: |
| 52 | + image: atlassian/jira-core:9.9.2 |
| 53 | + container_name: jira |
| 54 | + hostname: jira |
| 55 | + restart: unless-stopped |
| 56 | + environment: |
| 57 | + # detailed debug messages during the container initialization |
| 58 | + - VERBOSE_LOGS=false |
| 59 | + # maximum number of days for access logs to be retained before being deleted |
| 60 | + - ATL_TOMCAT_ACCESS_LOGS_MAXDAYS=360 |
| 61 | + # The maximum time a user can remain logged-in with remember me feature. |
| 62 | + - ATL_AUTOLOGIN_COOKIE_AGE |
| 63 | + # The minimum heap size of the JVM |
| 64 | + - JVM_MINIMUM_MEMORY=1024m |
| 65 | + # maximum heap size of the JVM |
| 66 | + - JVM_MAXIMUM_MEMORY=1024m |
| 67 | + # reserved code cache size of the JVM |
| 68 | + - JVM_RESERVED_CODE_CACHE_SIZE=256m |
| 69 | + # reverse proxy setup |
| 70 | + - ATL_PROXY_NAME=jira.example.com |
| 71 | + - ATL_PROXY_PORT=443 |
| 72 | + - ATL_TOMCAT_PORT=8090 |
| 73 | + - ATL_TOMCAT_SCHEME=https |
| 74 | + - ATL_TOMCAT_SECURE=false |
| 75 | + # list of trusted reverse proxy ips separated by a pipe character |
| 76 | + - ATL_TOMCAT_TRUSTEDPROXIES=192.168.0.0/24|10.0.0.0/8|172.16.0.0/16 |
| 77 | + depends_on: |
| 78 | + - postgresql |
| 79 | + ports: |
| 80 | + - 8080:8080/tcp |
| 81 | + expose: |
| 82 | + - 8080 # http web |
| 83 | + volumes: |
| 84 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/jira/data:/var/atlassian/application-data/jira |
| 85 | + networks: |
| 86 | + - atlassian-network |
| 87 | + - internal-db-network |
| 88 | + #labels: |
| 89 | + # - traefik.enable=true |
| 90 | + # - traefik.docker.network=atlassian-network |
| 91 | + # - traefik.http.routers.jira.rule=Host(`jira.example.com`) |
| 92 | + # - traefik.http.services.jira.loadbalancer.server.port=8080 |
| 93 | + # # Optional part for file upload max sizes |
| 94 | + # - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000 |
| 95 | + # - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000 |
| 96 | + # - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000 |
| 97 | + # - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000 |
| 98 | + # # Optional part for traefik middlewares |
| 99 | + # - traefik.http.routers.jira.middlewares=local-ipwhitelist@file |
| 100 | + |
| 101 | + postgresql: |
| 102 | + image: docker.io/library/postgres:16-alpine |
| 103 | + container_name: jira-psql |
| 104 | + restart: unless-stopped |
| 105 | + healthcheck: |
| 106 | + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] |
| 107 | + start_period: 20s |
| 108 | + interval: 30s |
| 109 | + retries: 5 |
| 110 | + timeout: 5s |
| 111 | + expose: |
| 112 | + - 5432 # psql service |
| 113 | + volumes: |
| 114 | + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/jira/psql:/var/lib/postgresql/data |
| 115 | + environment: |
| 116 | + POSTGRES_PASSWORD: ${PG_PASS:-jira} |
| 117 | + POSTGRES_USER: ${PG_USER:-jira} |
| 118 | + POSTGRES_DB: ${PG_DB:-jira} |
| 119 | + networks: |
| 120 | + - internal-db-network |
| 121 | + |
| 122 | +networks: |
| 123 | + atlassian-network: |
| 124 | + external: true |
| 125 | + internal-db-network: |
| 126 | + internal: true |
0 commit comments