Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Docker-Compose ALT ENV Variables Not working

Ibrahim Saleh December 21, 2020

Hello,

We are facing confusing issue with JIRA using Docker-Compose, we defined the variables, but these variables won't work and this must be an issue with the software, we have done our homework.

We are using the latest version of docker.

 

version: "3.5"

services:
jira:
container_name: Jira
depends_on:
- atlassiandb
image: atlassian/jira-software
volumes:
- jira:/var/atlassian/application-data/jira
networks:
- atlassian
ports:
- "8080:8080"
environment:
- JVM_MINIMUM_MEMORY=2048m
- JVM_MAXIMUM_MEMORY=4096m
- ATL_PROXY_NAME=jira.domain.com
- ATL_PROXY_PORT=443
- ATL_TOMCAT_SCHEME=https
- ATL_TOMCAT_SECURE=true
logging:
# limit logs retained on host to 25MB
driver: "json-file"
options:
max-size: "500k"
max-file: "50"
confluence:
container_name: Confluence
depends_on:
- atlassiandb
image: atlassian/confluence-server
volumes:
- confluence:/var/atlassian/application-data/confluence
networks:
- atlassian
ports:
- "8090:8090"
environment:
- JVM_MINIMUM_MEMORY=2048m
- JVM_MAXIMUM_MEMORY=4096m
- ATL_PROXY_NAME=confluence.domain.com
- ATL_PROXY_PORT=443
- ATL_TOMCAT_SCHEME=https
- ATL_TOMCAT_SECURE=true
logging:
# limit logs retained on host to 25MB
driver: "json-file"
options:
max-size: "500k"
max-file: "50"

volumes:
jira:
external: false
confluence:
external: false

networks:
atlassian:
driver: bridge
name: atlassian

 

1 answer

1 accepted

0 votes
Answer accepted
Ibrahim Saleh December 21, 2020

I figured the problem since I was using Dockerfile to build from the official build all were good, however, by assigning Jira as the user you will get this error and therefore these variables won't be used to build server.xml and this is the cause of the issue.

Confluence | WARNING:root:Container not started as root. Bootstrapping skipped for '/opt/atlassian/confluence/conf/server.xml'

 

I hope this helps someone out there.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events