forked from datakaveri/dx-catalogue-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (99 loc) · 3.16 KB
/
docker-compose.yml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '3.7'
networks:
cat-net:
driver: bridge
services:
cat:
image: iudx/cat-prod:latest
environment:
- CAT_URL=https://catalogue.iudx.org.in
- LOG_LEVEL=INFO
- CAT_JAVA_OPTS=-Xmx4096m
volumes:
- ./configs/config-depl.json:/usr/share/app/configs/config.json
- ./configs/keystore.jks:/usr/share/app/configs/keystore.jks
depends_on:
- "zookeeper"
ports:
- "8080:8080"
- "9000:9000"
restart: on-failure
networks:
- cat-net
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
command: bash -c "exec java $$CAT_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$(hostname) -c configs/config.json"
dev:
image: iudx/cat-dev:latest
environment:
- CAT_URL=https://catalogue.iudx.org.in
- LOG_LEVEL=INFO
- CAT_JAVA_OPTS=-Xmx1024m
volumes:
- ./configs/config-dev.json:/usr/share/app/configs/config.json
- ./configs/keystore.jks:/usr/share/app/configs/keystore.jks
ports:
- "8080:8080"
- "9000:9000"
restart: on-failure
networks:
- cat-net
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
command: bash -c "exec java $$CAT_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$(hostname) -c configs/config.json"
# Jenkins CI pipeline Unit test and Jacoco service
test:
image: ghcr.io/datakaveri/cat-test:latest
environment:
- CAT_URL=https://catalogue.iudx.org.in
- WORKSPACE
- LOG_LEVEL=INFO
volumes:
- /home/ubuntu/configs/cat-config-test.json:/usr/share/app/configs/config-test.json
- ./src/:/usr/share/app/src
- ./docker/runTests.sh:/usr/share/app/docker/runTests.sh
- ${WORKSPACE}:/tmp/test
- /var/run/docker.sock:/var/run/docker.sock
- ./iudx-pmd-ruleset.xml:/usr/share/app/iudx-pmd-ruleset.xml
- ./google_checks.xml:/usr/share/app/google_checks.xml
command: bash -c "docker/runTests.sh && cp -r target /tmp/test"
networks:
- cat-net
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
# Jenkins CI pipeline performance test service
perfTest:
image: ghcr.io/datakaveri/cat-prod:latest
environment:
- CAT_URL=https://catalogue.iudx.org.in
- WORKSPACE
- LOG_LEVEL=INFO
volumes:
- /home/ubuntu/configs/cat-config-dev.json:/usr/share/app/configs/config.json
ports:
- "8080:8080"
command: bash -c "exec java $$CAT_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$(hostname) -c configs/config.json"
networks:
- cat-net
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
depends_on:
- "zookeeper"
zookeeper:
image: zookeeper:latest
expose:
- "2181"
networks:
- cat-net