Initial Commit
This commit is contained in:
3
compose/.env
Normal file
3
compose/.env
Normal file
@@ -0,0 +1,3 @@
|
||||
JIRA_PORT=8080
|
||||
CONFLUENCE_PORT=8090
|
||||
CONFLUENCE_SYNCHRONY_PORT=8091
|
||||
10
compose/db-init-script.sh
Normal file
10
compose/db-init-script.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
CREATE ROLE confluence WITH LOGIN PASSWORD 'test123';
|
||||
CREATE ROLE jira WITH LOGIN PASSWORD 'test123';
|
||||
EOSQL
|
||||
|
||||
createdb -O confluence -E utf8 --lc-collate=en_US.utf8 --lc-ctype=en_US.utf8 confluence
|
||||
createdb -O jira -E UNICODE -l C -T template0 jira
|
||||
53
compose/docker-compose.yaml
Normal file
53
compose/docker-compose.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
version: '3'
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./db-init-script.sh:/docker-entrypoint-initdb.d/init.sh
|
||||
- ./pgdata:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=test123
|
||||
jira:
|
||||
restart: unless-stopped
|
||||
image: atlassian/jira-software:latest
|
||||
environment:
|
||||
- ATL_JDBC_URL=jdbc:postgresql://db/jira
|
||||
- ATL_JDBC_USER=jira
|
||||
- ATL_JDBC_PASSWORD=test123
|
||||
- ATL_DB_TYPE=postgres72
|
||||
- ATL_DB_DRIVER=org.postgresql.Driver
|
||||
- JVM_MAXIMUM_MEMORY=1024m
|
||||
volumes:
|
||||
- ./jira-home:/var/atlassian/application-data/jira
|
||||
ports:
|
||||
- ${JIRA_PORT}:8080
|
||||
depends_on:
|
||||
- db
|
||||
ulimits:
|
||||
nproc: 65535
|
||||
nofile:
|
||||
soft: 26677
|
||||
hard: 46677
|
||||
|
||||
confluence:
|
||||
restart: unless-stopped
|
||||
image: atlassian/confluence:latest
|
||||
environment:
|
||||
- ATL_JDBC_URL=jdbc:postgresql://db/confluence
|
||||
- ATL_JDBC_USER=confluence
|
||||
- ATL_JDBC_PASSWORD=test123
|
||||
- ATL_DB_TYPE=postgresql
|
||||
- JVM_MAXIMUM_MEMORY=1024m
|
||||
ports:
|
||||
- ${CONFLUENCE_PORT}:8090
|
||||
- ${CONFLUENCE_SYNCHRONY_PORT}:8091
|
||||
volumes:
|
||||
- ./confluence-home:/var/atlassian/application-data/confluence
|
||||
depends_on:
|
||||
- db
|
||||
ulimits:
|
||||
nproc: 65535
|
||||
nofile:
|
||||
soft: 26677
|
||||
hard: 46677
|
||||
Reference in New Issue
Block a user