Last active
February 18, 2025 20:52
-
-
Save SamEureka/3346f308921a43fb02e8b2c8a0763423 to your computer and use it in GitHub Desktop.
Docker Compose file for Jira/Confluence/Postgres setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER jira_dbuser WITH PASSWORD | |
CREATE DATABASE jira | |
WITH | |
OWNER = jira_dbuser | |
ENCODING = 'UTF8' | |
CONNECTION LIMIT = -1; | |
CREATE DATABASE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Postgresql | |
PGPASSWORD=myPassword | |
PGUSER=PGUser | |
PGDB=database | |
# Atlassian | |
TOMCAT_SCHEME=https | |
TOMCAT_SECURE=true | |
JVM_MIN=3072m | |
JVM_MAX=3072m | |
JVM_HEAP=1024m | |
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
Is that jira will intercommunicate with postgres and shall we import the dump from existing database?