-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
86 lines (80 loc) · 2.28 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
78
79
80
81
82
83
84
85
86
version: "3.4"
services:
jtt-webapp:
image: "nexus-docker-time-tracking.in.devexperts.com/jira-time-tracking-app/jtt-webapp:build${VERSION_NUMBER}"
container_name: jtt-webapp-build${VERSION_NUMBER}
restart: always
ports:
- "127.0.0.1:8080:8080"
environment:
- WAIT_HOSTS=jtt-postgres:5432
- JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
- VERSION=build${VERSION_NUMBER}
- SPRING_PROFILES_ACTIVE=local,docker
- JIRA_URL=${JIRA_URL}
- JTT_ALLOWED_ORIGINS=http://${JTT_WEBAPP_HOST},https://${JTT_WEBAPP_HOST}
- JTT_WEBAPP_HOST=${JTT_WEBAPP_HOST}
- JTT_WEBAPP_PORT=80
- JTT_USE_FIXED_RULES=false
- POSTGRES_HOST=jtt-postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=jtt
- POSTGRES_USER=jtt
- POSTGRES_PASSWORD=jtt
- OAUTH_CONSUMER_KEY=${OAUTH_CONSUMER_KEY}
- OAUTH_ACCESS_TOKEN=${OAUTH_ACCESS_TOKEN}
- OAUTH_PRIVATE_KEY=${OAUTH_PRIVATE_KEY}
- OAUTH_SECRET=${OAUTH_SECRET}
volumes:
- dumps:/opt/dumps
- ../log:/log
networks:
- backend
expose:
- "8080"
jtt-proxy:
image: nginx:latest
container_name: jtt-proxy
volumes:
- ./proxy/${FULL_CHAIN_PEM}:/etc/nginx/fullchain.pem
- ./proxy/${PRIVATE_KEY_PEM}:/etc/nginx/privkey.pem
- ./proxy/nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
- "443:443"
networks:
- backend
jtt-postgres:
image: "postgres:13.1"
container_name: jtt-postgres
environment:
- POSTGRES_DB=jtt
- POSTGRES_USER=jtt
- POSTGRES_PASSWORD=jtt
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ~/jtt/postgres_data:/var/lib/postgresql
ports:
- "5432:5432"
restart: always
networks:
- backend
jtt-ui:
image: "nexus-docker-time-tracking.in.devexperts.com/jira-time-tracking-app/jtt-ui:build${VERSION_NUMBER}"
container_name: jtt-ui-build${VERSION_NUMBER}
ports:
- "127.0.0.1:8081:80"
- "127.0.0.1:6006:6006"
restart: always
volumes:
- ./ui-nginx:/etc/nginx/
- ./custom_images:/usr/share/nginx/html/custom_images
stdin_open: true
networks:
- backend
networks:
backend:
external: true
volumes:
dumps:
external: true