Skip to content

Instantly share code, notes, and snippets.

@SamEureka
Last active August 10, 2023 19:53
Show Gist options
  • Save SamEureka/3346f308921a43fb02e8b2c8a0763423 to your computer and use it in GitHub Desktop.
Save SamEureka/3346f308921a43fb02e8b2c8a0763423 to your computer and use it in GitHub Desktop.
Docker Compose file for Jira/Confluence/Postgres setup
version: '3.3'
services:
confluence-server:
depends_on:
- postgres-server
environment:
- JVM_MINIMUM_MEMORY=$JVM_MIN
- JVM_MAXIMUM_MEMORY=$JVM_MAX
- JVM_RESERVED_CODE_CACHE_SIZE=$JVM_HEAP
- ATL_PROXY_NAME=site.url
- ATL_PROXY_PORT=443
- ATL_TOMCAT_SCHEME=$TOMCAT_SCHEME
- ATL_TOMCAT_SECURE=$TOMCAT_SECURE
- ATL_TOMCAT_CONTEXTPATH=wiki
volumes:
- '/var/data/confluence:/var/atlassian/application-data/confluence'
container_name: confluence
ports:
- '8090:8090'
- '8091:8091'
image: 'atlassian/confluence:7.4.0'
restart: unless-stopped
jira-server:
depends_on:
- postgres-server
environment:
- JVM_MINIMUM_MEMORY=$JVM_MIN
- JVM_MAXIMUM_MEMORY=$JVM_MAX
- JVM_RESERVED_CODE_CACHE_SIZE=$JVM_HEAP
- ATL_TOMCAT_PORT=8100
- ATL_PROXY_NAME=site.url
- ATL_PROXY_PORT=443
- ATL_TOMCAT_SCHEME=$TOMCAT_SCHEME
- ATL_TOMCAT_SECURE=$TOMCAT_SECURE
- ATL_TOMCAT_CONTEXTPATH=jira
volumes:
- '/var/data/jira:/var/atlassian/application-data/jira'
container_name: jira
ports:
- '8100:8100'
image: 'atlassian/jira-software'
restart: unless-stopped
postgres-server:
environment:
- POSTGRES_PASSWORD=$PGPASSWORD
- POSTGRES_USER=$PGUSER
- POSTGRES_DB=$PGDB
volumes:
- '/var/data/postgres:/var/lib/postgresql/data'
container_name: postgres
ports:
- '5432:5432'
image: postgres:alpine
CREATE USER jira_dbuser WITH PASSWORD
CREATE DATABASE jira
WITH
OWNER = jira_dbuser
ENCODING = 'UTF8'
CONNECTION LIMIT = -1;
CREATE DATABASE
# Postgresql
PGPASSWORD=myPassword
PGUSER=PGUser
PGDB=database
# Atlassian
TOMCAT_SCHEME=https
TOMCAT_SECURE=true
JVM_MIN=3072m
JVM_MAX=3072m
JVM_HEAP=1024m
@ksathyaraj
Copy link

Is that jira will intercommunicate with postgres and shall we import the dump from existing database?

@niclix
Copy link

niclix commented Sep 23, 2022

conflunce-server spelled wrong it's confluence
and conflunce-server is deprecated, just need to use atlassian/confluence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment