Hi all,
I have a kind of issue here.
Wanted to install JIRA and Confluence as a docker image, and as a reverse proxy I wanted to use traefik.
After a little try and error and a lot of reading on the traefik site I got the containers running.
My JIRA and Confluence answers on the subdomains I set up, and I can see the startpages of both.
So far so good, problem is, when I enter the JIRA setup page it asks for the base URL of the installation. When I enter my subdomain, the validation says the URL is not valid.
If I log in on the computer where the docker containers are running and use the backend addresses traefik created, then it works.
So I am guessing it is an iptables/routing/DNS problem, but I am stuck here. Please help.
This is my docker-compose.yml file:
version: '3.5'
services:
reverse-proxy:
restart: always
networks:
- web
image: traefik # The official Traefik docker image
command: --api --docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "80:80" # The HTTP port
- "8080:8080" # The Web UI (enabled by --api)
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
jira:
depends_on:
- pgsql_jira
restart: always
image: teamatldocker/jira
networks:
- web
volumes:
- jiradata:/var/atlassian/jira
environment:
- 'JIRA_DATABASE_URL=postgresql://jira@pgsql_jira/jiradb'
- 'JIRA_DB_PASSWORD=xxxx'
- 'SETENV_JVM_MINIMUM_MEMORY=2048m'
- 'JIRA_PROXY_NAME='
- 'JIRA_PROXY_PORT='
- 'JIRA_PROXY_SCHEME='
logging:
driver: "json-file"
options:
max-size: "500k"
max-file: "50"
labels:
- "traefik.frontend.rule=Host:jira.kub-01"
confluence:
depends_on:
- pgsql_confluence
image: teamatldocker/confluence
networks:
- web
volumes:
- confluencedata:/var/atlassian/confluence
environment:
- 'CONFLUENCE_DATABASE_URL=postgresql://confluence@pgsql_confluence/confluencedb'
- 'CONFLUENCE_DB_PASSWORD=xxxx'
- 'SETENV_JVM_MINIMUM_MEMORY=2048m'
- 'CONFLUENCE_PROXY_NAME='
- 'CONFLUENCE_PROXY_PORT='
- 'CONFLUENCE_PROXY_SCHEME='
logging:
# limit logs retained on host to 25MB
driver: "json-file"
options:
max-size: "500k"
max-file: "50"
labels:
- "traefik.frontend.rule=Host:confluence.kub-01"
pgsql_jira:
image: postgres:9.5-alpine
networks:
- web
volumes:
- postgresqldata:/var/lib/postgresql/data
environment:
- 'POSTGRES_USER=jira'
# CHANGE THE PASSWORD!
- 'POSTGRES_PASSWORD=xxxx'
- '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:
- "traefik.enable=false"
pgsql_confluence:
image: postgres:9.5-alpine
networks:
- web
volumes:
- pgsqldata:/var/lib/postgresql/data
environment:
- 'POSTGRES_USER=confluence'
# CHANGE THE PASSWORD!
- 'POSTGRES_PASSWORD=xxxx'
- 'POSTGRES_DB=confluencedb'
- '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:
- "traefik.enable=false"
volumes:
jiradata:
external: false
confluencedata:
external: false
pgsqldata:
external: false
postgresqldata:
external: false
networks:
web:
external: true