Skip to content

Instantly share code, notes, and snippets.

@MathyV
Last active October 10, 2018 07:32
Show Gist options
  • Save MathyV/8269535d6701606cba8a8a3f757f3130 to your computer and use it in GitHub Desktop.
Save MathyV/8269535d6701606cba8a8a3f757f3130 to your computer and use it in GitHub Desktop.
Jira setup with docker-compose, nginx proxy and letsencrypt
# Replace _ with / in filenames
version: '2'
services:
jira:
image: draca/atlassian-jira-software:7.7.0
environment:
# - DISABLE_NOTIFICATIONS=TRUE
- JIRA_ARGS=-Datlassian.plugins.enable.wait=300
- JIRA_PROXY_NAME=support.draca.be
- JIRA_PROXY_PORT=443
- JIRA_PROXY_SCHEME=https
- VIRTUAL_HOST=support.draca.be
- LETSENCRYPT_HOST=support.draca.be
- LETSENCRYPT_EMAIL=mathy@draca.be
- JVM_MINIMUM_MEMORY=1024m
- JVM_MAXIMUM_MEMORY=2048m
volumes:
- ./data:/opt/atlassian/jira/data
networks:
- public
- default
restart: always
db:
image: postgres:9.6
environment:
- POSTGRES_PASSWORD=secret
- POSTGRES_USER=jira
- POSTGRES_DB=jira
- POSTGRES_INITDB_ARGS=-E UNICODE --locale=C
volumes:
- ./db:/var/lib/postgresql/data
restart: always
networks:
public:
external: true
logging:
options:
max-size: 50m
# Replace _ with / in filenames
client_max_body_size 30m;
# Replace _ with / in filenames
proxy_read_timeout 300;
proxy_send_timeout 300;
# Replace _ with / in filenames
version: '2'
services:
proxy:
image: jwilder/nginx-proxy:alpine
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./conf/long-timeout.conf:/etc/nginx/conf.d/long-timeout.conf
- ./conf/big-files.conf:/etc/nginx/conf.d/big-files.conf
- ./certs:/etc/nginx/certs:ro
- /etc/nginx/vhost.d
- /usr/share/nginx/html
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
ports:
- 80:80
- 443:443
networks:
- public
restart: always
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs:/etc/nginx/certs:rw
volumes_from:
- proxy
restart: always
networks:
public:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment