Copy files to your host.
Run following commands:
docker-compose -f confl.yml -p confl up -d
docker-compose -f jira.yml -p jira up -d| version: '2' | |
| services: | |
| confluence: | |
| image: blacklabelops/confluence | |
| restart: unless-stopped | |
| hostname: confluence | |
| networks: | |
| - confluencenet | |
| volumes: | |
| - confluencedata:/var/atlassian/confluence | |
| ports: | |
| - '8081:8090' | |
| - '8091:8091' | |
| environment: | |
| - 'CATALINA_OPTS= -Xms256m -Xmx1g' | |
| - 'CONFLUENCE_PROXY_NAME=' | |
| - 'CONFLUENCE_PROXY_PORT=' | |
| - 'CONFLUENCE_PROXY_SCHEME=' | |
| - 'CONFLUENCE_DELAYED_START=' | |
| labels: | |
| com.blacklabelops.description: "Atlassian Confluence" | |
| com.blacklabelops.service: "confluence" | |
| postgresql: | |
| image: blacklabelops/postgres | |
| hostname: postgres | |
| restart: unless-stopped | |
| networks: | |
| - confluencenet | |
| volumes: | |
| - ./conflpostgresqldata:/var/lib/postgresql/data | |
| environment: | |
| - 'POSTGRES_USER=confluencedb' | |
| # CHANGE THE PASSWORD! | |
| - 'POSTGRES_PASSWORD=jellyfish' | |
| - 'POSTGRES_DB=confluencedb' | |
| - 'POSTGRES_ENCODING=UTF8' | |
| - 'POSTGRES_COLLATE=C' | |
| - 'POSTGRES_COLLATE_TYPE=C' | |
| labels: | |
| com.blacklabelops.description: "PostgreSQL Database Server" | |
| com.blacklabelops.service: "postgresql" | |
| volumes: | |
| confluencedata: | |
| external: false | |
| networks: | |
| confluencenet: | |
| driver: bridge |
| version: '3' | |
| services: | |
| jira: | |
| depends_on: | |
| - postgresql | |
| image: blacklabelops/jira | |
| restart: unless-stopped | |
| networks: | |
| - jiranet | |
| volumes: | |
| - jiradata:/var/atlassian/jira | |
| ports: | |
| - '8080:8080' | |
| environment: | |
| - 'JIRA_DATABASE_URL=postgresql://jira@postgresql/jiradb' | |
| - 'JIRA_DB_PASSWORD=jellyfish' | |
| - 'SETENV_JVM_MINIMUM_MEMORY=384m' | |
| - 'SETENV_JVM_MAXIMUM_MEMORY=1g' | |
| - 'JIRA_PROXY_NAME=' | |
| - 'JIRA_PROXY_PORT=' | |
| - 'JIRA_PROXY_SCHEME=' | |
| logging: | |
| # limit logs retained on host to 25MB | |
| driver: "json-file" | |
| options: | |
| max-size: "500k" | |
| max-file: "50" | |
| labels: | |
| com.blacklabelops.description: "Atlassian Jira" | |
| com.blacklabelops.service: "jira" | |
| postgresql: | |
| image: blacklabelops/postgres | |
| restart: unless-stopped | |
| networks: | |
| - jiranet | |
| volumes: | |
| - ./jirapostgresqldata:/var/lib/postgresql/data | |
| environment: | |
| - 'POSTGRES_USER=jira' | |
| # CHANGE THE PASSWORD! | |
| - 'POSTGRES_PASSWORD=jellyfish' | |
| - 'POSTGRES_DB=jiradb' | |
| - 'POSTGRES_ENCODING=UNICODE' | |
| - 'POSTGRES_COLLATE=C' | |
| - 'POSTGRES_COLLATE_TYPE=C' | |
| logging: | |
| # limit logs retained on host to 25MB | |
| driver: "json-file" | |
| options: | |
| max-size: "500k" | |
| max-file: "50" | |
| labels: | |
| com.blacklabelops.description: "PostgreSQL Database Server" | |
| com.blacklabelops.service: "postgresql" | |
| volumes: | |
| jiradata: | |
| external: false | |
| networks: | |
| jiranet: | |
| driver: bridge |