-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
77 lines (70 loc) · 1.91 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
services:
jira:
depends_on:
- mysql
container_name: jira
restart: always
image: cptactionhank/atlassian-jira-software:7.13.0
environment:
- VIRTUAL_HOST=${JIRA_HOST}
- LETSENCRYPT_HOST=${JIRA_HOST}
- LETSENCRYPT_EMAIL=${JIRA_EMAIL}
ports:
- '8080:8080'
volumes:
- jira-data:/var/atlassian/jira # JIRA_HOME
- ./dbconfig.xml:/var/atlassian/jira/dbconfig.xml
networks:
jira-network:
mysql:
container_name: mysql
restart: always
image: mysql:5
environment:
- NETWORK_ACCESS=internal
environment:
- MYSQL_ROOT_PASSWORD=${JIRA_MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${JIRA_MYSQL_DATABASE} # this database will be created on image startup
- MYSQL_USER=${JIRA_MYSQL_USER} # this user will be granted superuser permissions on MYSQL_DATABASE
- MYSQL_PASSWORD=${JIRA_MYSQL_PASSWORD}
volumes:
- mysql-data:/var/lib/mysql
networks:
jira-network:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- nginx-vhost.d:/etc/nginx/vhost.d
- nginx-vhost.d:/usr/share/nginx/html
- nginx-certs:/etc/nginx/certs:ro
networks:
- jira-network
restart: always
letsencrypt:
container_name: letsencrypt
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- nginx-certs:/etc/nginx/certs:rw
- nginx-vhost.d:/etc/nginx/vhost.d
- nginx-vhost.d:/usr/share/nginx/html
networks:
- jira-network
restart: always
networks:
jira-network:
driver: bridge
volumes:
jira-data:
mysql-data:
nginx-vhost.d:
nginx-share.html:
nginx-certs: